You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Charles Duffy <cd...@spamcop.net> on 2007/02/16 12:43:02 UTC

Proposal: mucc setprop commands (for use in svncopy-type command w/o a wc)

Howdy, all.

I'm interested in doing svncopy-style operations (ie. pegging externals) 
within a single transaction which may include other operations (like 
removing any folder already at the target location) without a working 
copy involved.

It seems to me that this would be rather simple to implement if I had an 
extended version of mucc capable of updating properties. Could anyone 
let me know if this is feasible, and/or of any possibly better approaches?

I imagine the remote-svncopy tool calling mucc as follows (I'm the 
Pythonic sort, so there's your syntax):

[
   'mucc', '-m', commit-message,
   'rm', dest_url,
   'cp', src_url, dest_url,
   'setdirprop',
     dest_url+'/path/to/directory/with/svn_externals/set',
     'svn:externals',
     pinned_svn_externals_content
]

Obviously, the rm pieces would only be inserted if the dest_url already 
exists, and the setprop pieces would be inserted for each svn:externals 
reference which needs modification.

I can handle this outer layer of code (determining the mucc command line 
to use) just fine myself, and I can certainly try my hand at modifying 
mucc -- but my familiarity with svn's low-level APIs is iffy at best 
(I've stuck to pysvn thus far), so I'd appreciate at minimum any advice 
as to potential gotchas.

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org