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

Re: Keyword expansion for $Log$

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-08-23 19:11:37 CEST

Frank Graf wrote:
> Hi,
>
> i am currently evaluating whether to replace our current CVS Repository
> with Subversion.
> One issue I could not get from the documentation is, whether there is
> replacement to $Log$ keyword replacement of CVS.
>
> Using this you could include the history of the document into it.
> I did not find such a feature or a different way to achieve this.
> Do I have overlooked something?

No, you did not, this feature does not exist in Subversion.

There have already been responses suggesting to check the archives, but
since it may be difficult to find the useful info amongst the discussion,
I'll give a summary:

In CVS $Log$ was implemented as a messy kludge. Two of the most severe
resulting bugs are:

* Lots of merge conflicts

* If you change a log message, the value in $Log$ doesn't always get
updated.

Implementing $Log$ right has a lot of potential pitfalls:

* What if the log contains "$"? Or even worse, other keywords?

* Do we really want to traverse the entire history for every file we
checkout?

And also, there is doubt that $Log$ is the right solution:

* Since revisions generally apply to groups of files, wouldn't a seperate
logfile be better (assuming that for some reason you can't run "svn log" as
needed).

If you discuss why you currently use $Log$, perhaps we can suggest an
alternative.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 23 19:12:20 2004

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.