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

Re: Advice for changing filename case in SVN on case insensitive system

From: Thomas Harold <thomas-lists_at_nybeta.com>
Date: Fri, 21 Jun 2013 17:48:11 -0400

On 6/20/2013 6:56 PM, Geoff Hoffman wrote:
> deleting the file from Subversion, then adding the copy with the correct
> case.
>
> Question: Doesn't that blow away revision history? If I didn't care
> about revision history I would just start over with a fresh repo.

If you use "svn mv" to do the change, it does not blow away the revision
history for the file. You can, however, choose to have log output stop
on copy.

http://svnbook.red-bean.com/en/1.7/svn.ref.svn.html#svn.ref.svn.sw.stop_on_copy

(In TortoiseSVN's log viewer, there is a checkbox at the bottom called
"Stop on copy/rename" that you can turn off.)

>
> I also thought about doing full URL svn mv's but seemed like that could
> take a very long time to do...
>

It probably will be slow, depending on which access method you use, and
each "mv" would result in a new transaction in the repository. I tend
to only do server-side moves (URL to URL) for the renaming of upper
level folders in the tree, which is a rare occurrence for us. All other
moves we try to do at the working copy level.

(As with everything, it's best to do a test on an inconsequential file
before doing any mass moves.)
Received on 2013-06-21 23:48:47 CEST

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.