You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brian McCann <Br...@viziant.net> on 2007/08/30 15:29:52 UTC

renaming multiple directories

Hi,
 
does anyone know of a way to rename multiple directories at once in SVN

I know it can be done on a dir by dir basis, but what if you need to do this on hundreds?
 
e.g. rename "test ( today)" strip off "(today) from the dir name to just "test"

Thanks,
Brian
 

Re: renaming multiple directories

Posted by Hari Kodungallur <hk...@gmail.com>.
On 8/30/07, Brian McCann <Br...@viziant.net> wrote:
>
>  Hi,
>
> does anyone know of a way to rename multiple directories at once in SVN
>
> I know it can be done on a dir by dir basis, but what if you need to do
> this on hundreds?
>
> e.g. rename "test ( today)" strip off "(today) from the dir name to just
> "test"
>
>
Don't think SVN itself has what you are looking for. But you could probably
script it?

regards,
-Hari Kodungallur

Re: renaming multiple directories

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 30, 2007, at 10:29, Brian McCann wrote:

> does anyone know of a way to rename multiple directories at once in  
> SVN
>
> I know it can be done on a dir by dir basis, but what if you need  
> to do this on hundreds?
>
> e.g. rename "test ( today)" strip off "(today) from the dir name to  
> just "test"

Nothing in Subversion prevents you from doing this, but nothing in  
Subversion will help you with this either.

You would check out a working copy, then rename the directory ("svn  
mv 'test (today)' 'test'"), do this for all affected directories,  
then commit.

If you don't want to have a working copy, and want to do it at the  
server directly, you can use mucc, the multiple-URL command client,  
to do the renames without a working copy. See:

http://svn.collab.net/repos/svn/trunk/contrib/client-side/svnmucc/ 
svnmucc.c

Since you have hundreds of directories to do, you will probably want  
to write a script of some kind in a language familiar to you to help  
you.




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