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

Re: Batch rename in TortoiseSVN

From: Florin Viorel Petrov <fv.petrov_at_fonitzu.com>
Date: Sun, 09 Nov 2014 22:27:20 +0100

On 09/11/2014 6:44 PM, franc walter wrote:

> Is there any way to batch rename all these Umlauts in one or only a few
> tasks without need to upload all the raw files again?
>

I did something similar some time ago using the command line client:
- from the command line, create the list of files, like "dir *.* >
files.txt"
- duplicate the "files.txt" and replace all umlauts in the duplicate file.
- take any editor supporting "column mode" (I use Ultraedit, it's
shareware) and open "files.txt".
- using column mode, insert in all lines, at the beginning,
"svn rename "
- copy the content of the file with fixed file names into the clipboard,
- in editor, go to a column beyond the longest file name and paste fixed
names,
- in this moment every line in editor will look like:
     "svn rename <file_name_with_umlauts> <file_name_without_umlauts>"
- save the editor content as batch file,
- DOUBLE-CHECK the content of the batch file,
- run the batch file.

This is how I did it once. If I remember correctly, there is a way to
rename directly within repository by using the URL of the file (use
"http://server/path/filename", not the path into the local copy; you may
have to specify a message with "-m"; be the "svn help rename" with you!

Florin

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3091028

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-11-09 22:27:59 CET

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

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