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

Re: Help with batch svn command line [with only 1 commit revision]

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-03 04:00:09 CET

On Nov 2, 2006, at 20:00, Jay Crouch wrote:

> Hi everyone - here is a bit of a weird question;
>
> I have basically implemented a front end for svn which operates
> over the web
> from which users can work with repositories.
>
> The biggie is that the web kit is interfacing with the repositories
> directly
> - not via a 'working copy'... I.e.:
>
> `svn import /path/to/uploaded_file file:///path/to/repo/`
>
> (think custom WebDav)
>
> Here is the question: how can I issue multiple svn command line
> statements
> in a batch job/transaction so that the revision # only increments
> by one.
>
> I.e.: repo is at revision 3; I issue a svn import, then a svn copy,
> then a
> svn rename; repo is now at revision 6. I want it to be revision 4.
>
> (the specific sequence of statements is not important - its only a
> quick
> example).

The standard Subversion command-line client ("svn") doesn't support
that, so you may want to look into the multi-URL command-line client
("mucc" [1]) or using the Subversion libraries directly via any of
the several language bindings available (in Python, Ruby, PHP, Perl,
etc.)

[1] http://svn.collab.net/repos/svn/trunk/contrib/client-side/mucc.c

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 3 04:00:45 2006

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