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

Re: enhancement for svn:keywords add Revision as abbrev as well as Rev

From: <kfogel_at_collab.net>
Date: 2003-06-20 18:34:00 CEST

Robert Pluim <rpluim@bigfoot.com> writes:
> Hmm, this has me wondering why the _LONG versions are all compared
> using strcmp, and the _SHORT ones all use strcasecmp in the existing
> code. Is this a CVS hangover?

No, it's because the long ones are multiple words (so the case
provides the word boundaries), while the short ones are a single word
each.

Remember, what's being parsed in the code you quoted is not the
"$Foo$" substring from the file, but rather the value of the
svn:keywords property. In the file contents, we only tolerate exact
matches: "$Date$" works but "$date$" does not. But for the property
value, we wanted people to be able to do

   $ svn propset svn:keywords date foo.c

...and have it still work.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 20 19:22:01 2003

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

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