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

Re: svn rename glob?

From: Jan Hendrik <list.jan.hendrik_at_gmail.com>
Date: Sat, 10 Jan 2009 22:11:11 +0100

Concerning svn rename glob?
Steve Cohen wrote on 10 Jan 2009, 14:50, at least in part:

> I wish to rename all files in a directory tree by changing their
> extension (keeping rest of filename the same) without losing history.
>
> Before I screw myself up can someone tell me if there is a way to do
> this with a single command line? If not, what would be the easiest
> way to perform this operation?

I may have missed something in the past, too, but what I do is run
a Perl (or Python) script with the respective file pattern set over the
working copy, writing the appropriate svn commandline for each hit
into a batch file, then (after checking everything looks all right) run
the latter and proceed with commit as usual.

I suppose with the Perl (or Python) bindings this could be done
more elegantly and natively, but so far this was sufficient for me.
Contact me offlist if you want the script as a starter (nothing
special about it).

Jan Hendrik
---------------------------------------
Freedom quote:

     Freedom suppressed and again regained bites
     with keener fangs than freedom never endangered.
               -- Marcus Tullius Cicero

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1015811

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-10 22:08:05 CET

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.