You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jay Crouch <ja...@safestream.com> on 2006/11/03 02:00:08 UTC

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

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).

Thanks, Jay



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

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

Posted by Jay Crouch <ja...@safestream.com>.
Thanks, where is the 'root of the subversion source directory' in a FreeBSD
Port Install? Is there even one or does the Port system work differently...

Also, while this should take out 99% of my scenarios, I have 1 that is of
multiple imports - does mucc handle this and is just undocumented? Is there
something else that can?


On 11/2/06 10:00 PM, "Ryan Schmidt" <su...@ryandesign.com> wrote:

> 
> 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

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

Posted by Ryan Schmidt <su...@ryandesign.com>.
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