Questions tagged [version-control-keywords]

Code used in version control systems can be marked with some tags like $Id$ and $author$ to provide meta data in the files under version control.

Code used in version control systems can be marked with some tags like $Id$ and $author$ the version control system will fill in the proper values automatic. In this way you have some meta data included in the file. Example $Id: 512 $ $author: Bodo$

16 questions
54
votes
4 answers

Git keyword substitution like those in Subversion?

I used to work under Subversion/SVN and was instantly using nice feature called keyword substitution. Just putting in source files smth like: /* * $Author: ivanovpv $ * $Rev: 42 $ * $LastChangedDate: 2012-05-25 21:47:42 +0200 (Fri, 25 May…
Barmaley
  • 16,638
  • 18
  • 73
  • 146
13
votes
3 answers

Automatically add svn keyword properties for new files (server-side)

I want to add svn properties (like svn:keyword=Id Date Rev Author) to files upon commits of new files. For this to work there may be two main options: Client-side: altering the autoprops in the svn client configuration Server-side: do some magic…
8
votes
3 answers

How to default svn:keywords to enabled?

Is there a way to enable svn:keywords by default so that this property does not need to be turned on for each keyword every time a new source file is added?
jacknad
  • 13,483
  • 40
  • 124
  • 194
5
votes
4 answers

How do I use global revision number keyword with TortoiseSVN?

In CVS you can use keywords in your code that are expanded when checking the files out. I'd like to display the global revision as CVS has with the $GlobalRev$ keyword. Subversion has the $Rev$ command but it only shows the latest revision that the…
Spoike
  • 119,724
  • 44
  • 140
  • 158
3
votes
2 answers

Set svn keywords recursively on *.cpp and *.h files

I need to set from command line (cmd or powershell) some svn keywords recursively on ALL .h and .cpp files. How can I do it? I tried svn propset svn:keywords "My keywords" -R *.cpp *.h without success, it says me: svn: warning: '.cpp' is not under…
Stefano
  • 3,213
  • 9
  • 60
  • 101
3
votes
1 answer

Git Extensions: rcs-keywords, smudge and clean filters

First of all, I must say that I'm quite new with Git. So I don't know all the tips&tricks yet... I have a following problem: In a file I have certain rcs-keywords (for example $Date$, $Author$ and $Commit$). These keywords are supposed to be…
JPR
  • 41
  • 1
2
votes
4 answers

How to set author name for subversion when i'm using svn:keywords

I want to set my full name (or a name chosen by me) to appears in the $Id$ area on commit and not my nickname. Is there a way to do it? OS: Ubuntu 8.10
cupakob
  • 8,411
  • 24
  • 67
  • 76
1
vote
2 answers

How do you prevent file confusion if version-control keywords are forbidden?

At least two brilliant programmers, Linus Torvalds and Guido von Rossum, disparage the practice of putting keywords into a file that expand to show the version number, last author, etc. I know how keyword differences clutter up diffs. One of the…
Thomas L Holaday
  • 13,614
  • 6
  • 40
  • 51
1
vote
1 answer

Best practice to store Subversion revision info app-wise

Subversion has the $Rev$ keyword, that's replaced by in example $Rev: 1843 $ when a file with that keyword is committed. Subversion places on it the revision this commit created. I'd like to use this info on my apps, so that after compiled an app…
Hikari
  • 3,797
  • 12
  • 47
  • 77
1
vote
1 answer

How to get Git version history embedded to source code?

In SO, there are some questions related how to get Git automatically append file change details (e.g. author, date, version number, short description of change, etc), using similar kind of keywords/tags/hashes as is used in RCS/CVS and most other…
Kalle
  • 101
  • 1
  • 10
1
vote
1 answer

Ident tool alternative in SVN property

We had already used "Ident" tool in CVS via RCS keywords to get some info like "ID" and "DATE" from our source codes. We could simply do that by inserting keywords $Id$ and $Date$ into the text file, and the nice thing was when we compiled the…
Masood
  • 685
  • 2
  • 8
  • 16
1
vote
0 answers

Is there any way to go back to initial keywords information in CVS..?

I am facing an issue with keywords in CVS. The issue is we checked out one file a.c , from linux 2.6.28 ( linux.org). Then checked in the file to our CVS server. Multiple people have have checked in the file a.c Now when I am checking out , I can…
1
vote
1 answer

Using svnversion with svn:keywords

I'm using Visual SVN on my Windows Box. I have Repository Application, which has Framework as an svn:external. All well and good. When I make a checkout of Application, I'd like to have the version of Application and Framework for inclusion in a…
EvilChookie
  • 563
  • 3
  • 14
  • 31
0
votes
0 answers

Is it possible to set the name of the standart svn-keywords?

As you know there are several keywords in SVN. I'm using some of them: Revision, Author, Date. To make them work as you know one should do some steps. One of the steps is to insert the following text in the file: Revision: $Revision$ Authoir: …
Andrew Lubochkn
  • 916
  • 2
  • 7
  • 16
0
votes
1 answer

Merge new revisions from original git repository with modified repository

I'm sorry It's kind of tricky to explain but essentially.. I'm trying to create a copy of an existing repository. But would it be possible to still get updates from the original repository without it ruining my own changes to the modified…
user1071461
1
2