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

RE: Problem with property

From: Robert Hunter <robert.hunter_at_gen-i.co.nz>
Date: 2005-04-27 23:53:28 CEST

Anthony Muller wrote:
>> svn propset --revprop -r 0 LockedBy anthony toto0.txt
>property 'LockedBy' set on repository revision 0
>> svn commit toto0.txt
>
>>svn propget -r 0 LockedBy toto0.txt
>svn: Unable to find repository location for 'toto0.txt' in revision 0
>
>Why can I set the property and I can't get it afterwards?

The example above sets a "revprop" (unversioned property), then
tries to retrieve a regular property.

It's also worth noting that unversioned properties apply to the
entire revision, regardless of which file you specify. In your
example above, "toto0.txt" is effectively ignored.

I figure that you probably don't need to indicate that an
entire transaction (r0) is "LockedBy" anthony, so you probably
don't need to use a revprop.

Try the following:

$ svn propset LockedBy anthony toto0.txt
$ svn propget LockedBy toto0.txt
$ svn commit
$ svn proplist -v toto0.txt

Or for a revprop:

$ svn propset --revprop -r 0 LockedBy anthony
$ svn propget --revprop -r 0 LockedBy
$ svn proplist --revprop -r 0 -v

-- 
Robert Hunter
#############################################################################
This communication, including any attachments, is confidential.
If you are not the intended recipient, you should not read it - 
please contact me immediately, destroy it, and do not copy or 
use any part of this communication or disclose anything about it.
Thank You.
Please note that this communication does not designate an information system
for the purposes of the NZ Electronic Transactions Act 2002.
This email was scanned and cleared by NetIQ MailMarshal at Gen-i Limited.
#############################################################################
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 28 00:59:34 2005

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.