Bettual Richter wrote:
>I'm trying to write a skript to set versioned properties after been
>triggered by a
>hook but I seem to get stuck finding a solution and hope someone here
>is able to help me or point out if it's not possible.
>
>I'd like to set a property for every file in a certain
>directory(recursivly) using
>an url. Something like
>
>svn propedit -R PROPNAME PROPVAL URL
>>I think you meant propset
>>
>>but anyhow svn prop* for versioned properties only work in on a
>>working copy.
Sry, but that's not right.
svn propedit NAME VAL URL
works without a working copy. I meant propedit and have
tested it extensively because it allows you to set
new properties(also versioned ones) see,
http://subversion.tigris.org/issues/show_bug.cgi?id=2238
comment from Noritada Kobayashi Thu Feb 1 03:55:02 -0700 2007
It's the only hint I found to figure this out
Anyway thx for your idea but it doesn't really work the way I need it.
I tested it using the svnmucc --extra-arg FILE with following results :
1. FILE containing one operation per line
e.g. 'propset NAME VAL URL'
gives 'propset NAME VAL URL' is not an action
2. FILE containing each arg in a seperate line
e.g. 'propset \n NAME \n VAL \n URL'
gives a correct reply and sets the right property
3. FILE containing serveral versions of 2.
e.g. 'propset \n NAME \n VAL \n URL
\npropset \n NAME \n VAL \n URL'
gives the same error as 1.
Assuming propedit works on URLs(it does) I'm trying to do something like
svn propedit NAME1 VAL1 URL1
svn propedit NAME2 VAL2 URL2
svn propedit NAME3 VAL3 URL3
at once.
Most suitable with only one revision change.
Any further ideas would make me happy :)
thanks
Bettual
Received on 2010-04-21 16:28:14 CEST