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

Re: Renaming directories

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2006-12-17 19:54:32 CET

On 12/17/2006 12:53 PM, David Arnold wrote:
> All,
> I've written a text in TeX and I have the files in directories:
>
> chapter0
> chapter1
> chapter2
> chapter3
>
> I need to rename the directories to:
>
> chapter1
> chapter2
> chapter0
> chapter4
>
> Inside each directory we have to rename files. For example, we have
> section1.tex, section2.tex, section3.tex and equations.tex in chapter0.
> We need to rename these to section1.tex, section3.tex, section4.tex,
> and section2.tex, respectively.
>
> We are aware of the svn move command, but our question is one of
> structure. We've already tagged a revision as fall2006 and put it in
> our tags directory. The project current resides in the trunk directory.
> It is this one that will need massive renaming.
>
> Before we take a brute force attack on this, is there some advice that
> people can share for a safe and efficient way to do the renaming?

I'd just do it the way you would in a normal file system using mv, with
the exception that it's probably a good idea to do two commits: one for
the file renames, and one for the directory renames. (I don't know if
this is necessary, but it costs very little, and I'd worry about getting
confused if I was renaming files in a renamed directory.

> Are branches something we should consider? Will our "tagged" fall2006
> version be affected by any renaming? Etc.

No, not unless you want it to be. Being "tagged" just means it's in
another part of the repository directory tree, it has no special meaning
to svn.

> Any advice appreciated.

Some other advice would be not to use the names you've chosen: rename
your files and chapters in a meaningful way, rather than by number,
because you might decide to reorganize the document again in the future.

Duncan Murdoch
>
> Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Dec 17 19:55:11 2006

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