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

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

From: Charles Duffy <cduffy_at_spamcop.net>
Date: 2007-02-16 13:43:02 CET

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,

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.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 16 13:45:31 2007

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