You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Liu Yubao <yu...@gmail.com> on 2006/10/08 06:59:29 UTC

Why "svn copy" and "svn move" can't accept more than one SRC?

The "add", "delete", "mkdir", "list" subcommands all can operate on many targets,
but "svn copy" and "svn move" don't act that way.

I searched svn.haxx.se and haven't found a good explanation, I known I
can use shell command to run these two commands repeatly, but I am still
curious about the reason for this CLI design.

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

Re: Why "svn copy" and "svn move" can't accept more than one SRC?

Posted by Raman Gupta <ra...@rocketraman.com>.
Dongsheng Song wrote:
> I need this feature too, do these op in one transaction:
> 
> svn cp http://192.168.15.101/svn/nova/trunk/source/
> http://192.168.15.101/svn/nova/tags/tag-A/source
> svn cp http://192.168.15.101/svn/nova/trunk/docs/
> http://192.168.15.101/svn/nova/tags/tag-A/docs
> ...

If you want to execute multiple server-side operations in one
transaction, try rsvn.py:

https://opensvn.csie.org/traccgi/rsvn/wiki

Cheers,
Raman

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

Re: Why "svn copy" and "svn move" can't accept more than one SRC?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 8, 2006, at 03:31, Dongsheng Song wrote:

> I need this feature too, do these op in one transaction:
>
> svn cp http://192.168.15.101/svn/nova/trunk/source/
> http://192.168.15.101/svn/nova/tags/tag-A/source
> svn cp http://192.168.15.101/svn/nova/trunk/docs/
> http://192.168.15.101/svn/nova/tags/tag-A/docs

For that you could use the Multiple URL Command Client:

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: Why "svn copy" and "svn move" can't accept more than one SRC?

Posted by Dongsheng Song <do...@gmail.com>.
I need this feature too, do these op in one transaction:

svn cp http://192.168.15.101/svn/nova/trunk/source/
http://192.168.15.101/svn/nova/tags/tag-A/source
svn cp http://192.168.15.101/svn/nova/trunk/docs/
http://192.168.15.101/svn/nova/tags/tag-A/docs
...

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

Re: Why "svn copy" and "svn move" can't accept more than one SRC?

Posted by Tan Ruyan <tr...@gmail.com>.
I need this feature too.

On 10/8/06, Liu Yubao <yu...@gmail.com> wrote:
> The "add", "delete", "mkdir", "list" subcommands all can operate on many targets,
> but "svn copy" and "svn move" don't act that way.

-- 
Tan Ruyan
Site:http://www.iUseSVN.com

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

Re: Why "svn copy" and "svn move" can't accept more than one SRC?

Posted by Karl Fogel <kf...@google.com>.
Liu Yubao <yu...@gmail.com> writes:
> 	http://subversion.tigris.org/issues/show_bug.cgi?id=747
> 	"Note: this is a bit harder than it initially seems. If the target is a
> 	 URL, then we want to collapse everything into a single commit (e.g.
> 	 looping over svn_client_move() would create multiple commits)."
>
> It seems a limitation of svn client API, svn_client_move()
> and svn_client_copy() all call setup_copy() in libsvn_client\copy.c,
> this function can accept only one src_path.
>
> I think these APIs can be enhanced and won't bring too much complexity.

Yes, I think I agree (which is not the same as saying I volunteer,
however :-) ).

Thanks for digging up that thread & issue!

Best,
-Karl

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

Re: Why "svn copy" and "svn move" can't accept more than one SRC?

Posted by Liu Yubao <yu...@gmail.com>.
Karl Fogel wrote:
> Liu Yubao <yu...@gmail.com> writes:
>> The "add", "delete", "mkdir", "list" subcommands all can operate on
>> many targets, but "svn copy" and "svn move" don't act that way.
>>
>> I searched svn.haxx.se and haven't found a good explanation, I known I
>> can use shell command to run these two commands repeatly, but I am
>> still curious about the reason for this CLI design.
> 
> I searched the issue tracker and didn't find any history about this.
> I haven't search the mailing list archives, you might want to try there.
I find this thread:
http://svn.haxx.se/users/archive-2005-01/0790.shtml
> 
> Off the top of my head, I can't think of any good reason for this CLI
> design, and maybe we should change cp and mv to take >2 arguments.  I
> remember some discussion about this a few years ago, but I don't
> remember the details of that discussion very well.
> 
> -Karl
> 
	http://subversion.tigris.org/issues/show_bug.cgi?id=747
	"Note: this is a bit harder than it initially seems. If the target is a
	 URL, then we want to collapse everything into a single commit (e.g.
	 looping over svn_client_move() would create multiple commits)."

It seems a limitation of svn client API, svn_client_move()
and svn_client_copy() all call setup_copy() in libsvn_client\copy.c,
this function can accept only one src_path.

I think these APIs can be enhanced and won't bring too much complexity.

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

Re: Why "svn copy" and "svn move" can't accept more than one SRC?

Posted by Karl Fogel <kf...@google.com>.
Liu Yubao <yu...@gmail.com> writes:
> The "add", "delete", "mkdir", "list" subcommands all can operate on
> many targets, but "svn copy" and "svn move" don't act that way.
>
> I searched svn.haxx.se and haven't found a good explanation, I known I
> can use shell command to run these two commands repeatly, but I am
> still curious about the reason for this CLI design.

I searched the issue tracker and didn't find any history about this.
I haven't search the mailing list archives, you might want to try there.

Off the top of my head, I can't think of any good reason for this CLI
design, and maybe we should change cp and mv to take >2 arguments.  I
remember some discussion about this a few years ago, but I don't
remember the details of that discussion very well.

-Karl

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