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

Re: Help with checkin hook

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Wed, 13 Aug 2008 23:00:06 -0400

Michael Maxwell wrote:
> (On the other hand, maybe I misunderstood the original posting--I read it to mean "keywords" are bad, but maybe it really meant "keyword expansion when doing diffs" is bad. If so, I apologize for prolonging this thread.)

Yeah, you are not understanding how Subversion works. If a file has
svn:keywords set, both the repository and the text-base (the copy of the file
inside the .svn directory) are stored with any keywords unexpanded. Only when
the file is written out to the working copy directory (the part you can see) is
it expanded. When performing a diff against the working copy file, the keywords
are once again unexpanded before actually comparing the file contents.

There is never any chance for the contents of an expanded keyword to conflict,
unless you unset the svn:keywords property of course. This is also why $Log$
will never be supported under Subversion (because it is multiline can cannot be
unexpanded safely).


To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-14 05:00:46 CEST

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.