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

Re: Moving a bunch of files as one revision.

From: Stephane Bortzmeyer <bortzmeyer_at_nic.fr>
Date: 2005-07-08 10:17:19 CEST

On Fri, Jul 08, 2005 at 03:50:50AM -0400,
 Dale Strickler <DaleStrickler@DirecWay.com> wrote
 a message of 28 lines which said:

> I have a group of 25 files in a working directory that I want to
> move to another working directory. (Both in the same repository.)
> The command line does not seem to accept wild cards and the SVN MOVE
> HELP does not seem to show multiple file syntax. [...] Is there a
> way to use wild cards or an indirect file list so that a move
> operation can be applied to a group of files and have all the moves
> be considered the same revision and all done with one invocation of
> svn?

Not tested but:

for file in start-directory/*; do
  svn rename $file other-directory/$file
done
svn commit -m '25 files renamed in one commit'

> As well as having to use a shell script to do the 25 invocations.

God gave the Shell to mankind precisely for such purposes. Do not
despise the Gift of God.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 8 10:19:33 2005

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.