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

Re: "svnlook pget --revprop" not preserving revprop value

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-04-28 20:55:07 CEST

John Belmonte <john@neggie.net> writes:

> In 1.2rc2, "svnlook pget --revprop" doesn't appear to yield an
> accurate revprop value:
>
> $ svnadmin create repo
> $ echo '#!/bin/sh' > repo/hooks/pre-revprop-change
> $ chmod +x repo/hooks/pre-revprop-change
> $ REPO=file:///$PWD/repo
> $ svn pset --revprop -r0 foo 'bar
> ' $REPO
> property 'foo' set on repository revision 0
> $ svn pget --revprop -r0 foo $REPO
> bar
>
> $ svnlook pget --revprop -r0 ./repo foo
> bar
> $ # note missing linefeed from svnlook

This is intentional. 'svnlook pget' never adds an extra newline
(because it aims to print raw property values). 'svn pget'
adds an extra newline to the output just in case there isn't one at
all, because it is aimed at human consumption.

What bugs me is that I *thought* the --strict flag to 'svn pget' would
make it behave in the same manner as 'svnlook pget', but that doesn't
appear to be the case.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 28 21:17:06 2005

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