[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: Reedick, Andrew <jr9445_at_ATT.COM>
Date: Wed, 2 Jan 2008 12:05:52 -0600

> -----Original Message-----
> From: ithinkihaveacat_at_gmail.com [mailto:ithinkihaveacat_at_gmail.com] On
> Behalf Of Michael Stillwell
> Sent: Wednesday, January 02, 2008 11:45 AM
> To: users_at_subversion.tigris.org
> Subject: moving multiple directories: {foo,bar} to quux/{foo,bar}
>
> 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.)
>

svn co -N $SVNROOT
cd workspace
svn co -N $d (or is it svn update -N $d?)
svn co -N quux (or svn update -N ...?)
svn mv blah blah blah to quux
svn ci

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