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

Re: renaming multiple directories

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-08-30 22:31:49 CEST

On Aug 30, 2007, at 10:29, Brian McCann wrote:

> does anyone know of a way to rename multiple directories at once in
> 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:


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

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 30 22:30:27 2007

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.