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

RE: Re: Batch rename in TortoiseSVN

From: franc walter <francwalter_at_gmx.net>
Date: Mon, 10 Nov 2014 06:29:51 -0800 (PST)

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

Oh yes! Thank you for this hint!
I have tools to do this, totalcmd and EditPadPro (can column copy&paste also).

Did it then like this:

1. in Total Commander search for: *ä* *ö* *ü* *ß* | .svn .svn\
gives me a file and dir list of all with Umlauts in the name

2. mark all folders in the list and copy the whole path (command can be found in Mark-menu)

3. in EditPadPro I use two tabs, one with the original path names and in other tab I search and replace Umlaute to their correspondent vocals (or ss for ß).

4. Add " at beginning and end (by Search Replace with Regex: ^ for beginngin and $ for end)

5. Adding many spaces to the first (orginal names with Umlauten) tab, by search $ (end of line) and replace with spaces, that I can open a column selection which is wide enough to put the second tab content in it.

6. Open a selection on the right of the first tabs lines, at least one space between the longest line and the beginning of the selection. Length of selection must be at least as long as longest line (see 5.)

7. Paste content of second tab.

8. Search for ^ (RegEx) and replace with svn rename (one space after rename).

9. Add a line break at last line and copy first tabs content.

10. Now it was not possible to run a batch file with this, I guess the encoding makes trouble, but not any problem, because I just open a dos box and paste my clipboard (first tab) into it.
Runs line after line and renames all these files.

11. Committing the renames of folders and now doing the same with all files, same way...

It took a while but would take much longer if done by hand and much more errors I guess.
So long now no more weird svn changed files in my MacBook.

Thank!

frank

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-11-10 15:29:54 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.