subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Krey <a.k...@gmx.de>
Subject Re: How do I escape a subversion keyword?
Date Fri, 27 May 2011 18:11:47 GMT
On Fri, 27 May 2011 13:27:36 +0000, darxus@chaosreigns.com wrote:
> On 05/27, Bob Archer wrote:
> > I'm confused about what you are asking. Are you saying you don't want
> > subversion to expand the keywords? If so, then remove them from the
> > svn:keywords property. Any keywords not in the property are not expanded.
> 
> I want the expanded keyword, and the *un-expanded* keyword to both exist in
> the same file.

Doesn't work. svn either expands them all, or none. The only way to
get selective is to use some quoting that does not affect the target
language's perception of the string but makes it not look like $Keyword$
to svn.

I don't know if perl likes

  if ('$LastChangedDate\$' eq '$LastChangedDate$')

or

  if ('$LastChangedDate\044' eq '$LastChangedDate$')

is legal in perl but anyway this specific check is equivalent to (Ruby)

  if '$LastChangedDate$' =~ /:/

(check whether the string contains a colon).

Or, to answer the subject line: As by the escaping rules of your content language.

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800

Mime
View raw message