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

Re: moving multiple directories: {foo,bar} to quux/{foo,bar}

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: Wed, 2 Jan 2008 12:30:42 -0600

On Jan 2, 2008, at 10:45, Michael Stillwell wrote:

> Is there a neat way of moving multiple files/directories at once?
> I've been doing something like:
> $ for d in dir1 dir2 ; do svn mv -m '' $SVNROOT/$d $SVNROOT/quux/
> $d ; done
> but this: (a) creates a revision per directory; (b) requires knowledge
> of the repository URL; and (c) isn't very pretty.
> Basically, is there a subversion equivalent of:
> $ mv dir1 dir2 quux
> ? (Or of TortoiseSVN's right-click drag.)

In Subversion 1.5, you will be able to say

        $ svn mv dir1 dir2 quux
        $ svn commit



Until then, you'll have to do each move separately:

        $ svn mv dir1 quux
        $ svn mv dir2 quux
        $ svn commit

If you want to do it remotely on repository URLs without using a
working copy, you may be able to do so with mucc (called "svnmucc" in


To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-04 07:02:59 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.