[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Does Subversion have a keyword which behaves like $Log$ in CVS?

From: Billy O'Mahony <billy.omahony_at_tecnomen.ie>
Date: 2005-02-02 12:43:05 CET

Hi,

I see from the FAQ and this list's archive that subversion frowns upon
having a history log added into the contents of files.

However it would be really nice to have a per file modification comment
stored in the repository (if not in the file itself) in addition to the
overall comment for the entire commit.

Example: In order to fix bug id 999 I have to add a new parameter to
function func(). This means I have to mod 3 files.

client.c /* Use new fudge_factor param for func()*/
svr.h /* Modified prototype for func()*/
svr.c /* func() has new param fudge_factor */

And finally the overall commit comment when bring the repository from Rev n
to Rev n+1 "Fixed bug id 999"

Is there someway this can be done? perhaps via a versioned file property?

Finally though the subversion team sound adamant what _is_ wrong with $Log$
??
o Just because a feature gives me the power to shoot myself in foot doesn't
I have to shoot myself in the foot

o Even though (as subversion allows commit comments to be modified at a
later time) it may mean that the log msgs in the file are out of synch with
what is in the repository. Surely the file comments themselves can also be
changed. And how often does someone make a check in comment that is actually
dangerously misleading?

o Also it is said that log comments confuse automatic merges. Surely it is
not so difficult to somehow mark log comments and ignore them during merges?
(or is subversion using standard tools for merging that wouldn't be
ignore-the-log-history aware). Personally I feel that merges that can be
automated are so simple as to be not worth automating them and difficult
merges can be made a little easier by having the $log$ comments available. I
admit that mileage may vary on this one. I merge so rarely that I simply
haven't built up a trust level in an automated tool.

Thanks in advance,

Billy O'Mahony.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 2 12:56:12 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.