Jump to content

Id header line in files


This N°9
 Share

Recommended Posts

In order to enable this feature, you have to apply

  svn propset -R svn:keywords "Id" <filename(s)>

to your files

Thereafter, add "$Id: $" to the header (or wherever). It will be automatically updated on each commit

Advantage: release packages will contain a reference to the svn revision you were using

Best Regards, Thorsten.

Link to comment
Share on other sites

Instructions for TortoiseSVN users to do this to all your files in one go:

Right-click the folder containing your app

From the context menu select 'TortoiseSVN... Properties'

Click the button labelled 'New...'

From the dropdown box select 'svn:keywords'

In the textbox labelled 'Property value:', type the word "Id", without the quotes.

Tick the box labelled "Apply property recursively"

Click OK

Click OK

Add this to your files:

/* $Id:  $ */

Save, commit the files, enjoy.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...