[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: Helge Kruse <Helge.Kruse-nospam_at_gmx.net>
Date: Mon, 12 Jan 2009 12:02:04 +0100

----- Original Message -----
From: "Steve Cohen" <scohen_at_javactivity.org>
To: <users_at_subversion.tigris.org>
Sent: Saturday, January 10, 2009 9:50 PM
Subject: svn rename glob?

>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?

Use the "svn rename" command recursive. For example to rename all .cpp
files to .cxx files you use this command:

for /R . %f in (*.cpp) do svn rename %f %~dpnf.cxx

Helge

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-12 14:23:35 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.