views:

137

answers:

1

Is it possible to rename directory in svn repository.

Not create new revision in which this directory will be renamed.

I would like to change the name of this directory starting from the first revision.

As far as I understand svndumpfilter utility can be used for this.

Is it correct?

Does anyone can give me small example how to do it?

A: 

You should svnadmin dump your repository, process the dump file and svnadmin load the processed file in an empty repo. No svndumpfilter needed.

The dump file can be processed with Sed or another tool (be sure that binary data doesn't get corrupted) and replace the directory name. For example:

sed -b -e "s/: dir1\/dir_old/: dir1\/dir_new/" old.dump > new.dump
antispam