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

Re: CVS $Log$ equivalent in Subversion?

From: David Waite <mass_at_akuma.org>
Date: 2004-03-09 20:15:11 CET

Question (to the original poster):

If you had $Log$ expanded only on export and not on checkout, would
that meet your needs?
If you got this export functionality via a script, would that meet your
needs?

-David Waite

On Mar 9, 2004, at 8:53 AM, C. Michael Pilato wrote:

> Bob Bradley <bob@chaoticsoftware.com> writes:
>
>> I hope so and it would be great to move to Subversion as it has a
>> ton of great features I'd like to use, but unfortunately, without
>> certain features we rely heavily on, it's just not feasible to
>> switch yet. I don't really understand the objection to $Log$
>> support. It's an optional keyword that nobody has to use unless they
>> want to. If managed properly, it doesn't have to cause any
>> problems.
>
> Fair enough.
>
>> I think the keywords that are already supported by Subversion
>> (e.g. $Id$ which almost guarantees a conflict by most diff tools)
>> are much more problematic than $Log (at least for me).
>
> Keywords are expanded client-side in Subversion, unlike CVS. So the
> $Id$ keyword won't conflict at all using diffs from Subversion.
>
>> It seems to me that people have chosen to manage sources in a way
>> that conflicts with using $Log$ and because of this, it has been
>> decreed that $Log$ is evil and should be banned. Others, like
>> myself, manage sources in ways that work well with $Log$ (and
>> conversely don't work well with other keywords like $Id$). I think
>> both ways are equally valid and the individual developer should be
>> given the choice rather than have a particular style chosen for
>> them.
>
> IIRC, $Log$ has been decreed evil because of the recursion problem
> that occurs when you actually use the character sequence "$Log$" in a
> log message, as in "I added the $Log$ keyword to the top of this
> file."
>
> Also (and this just occured to me), I suspect Subversion would have
> problems with any use of a '$' in a log message. Expansion of "$Log
> $" would yield something like "$Log: this is my log with a $ (dollar
> sign) $", and subsequent unexpansion would reduce this to "$Log $
> (dollar sign) $". In fact, I betcha that if I author with a dollar
> sign in his name, that would royally mess up our $Author $ keyword
> handling.
>
> /me goes to check.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

  • application/pkcs7-signature attachment: smime.p7s
Received on Tue Mar 9 20:15:50 2004

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