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

RE: Rename multiple files in repository

From: Gleason, Todd <tgleason_at_impac.com>
Date: Wed, 5 Nov 2008 09:50:07 -0800

I have to admit that it doesn't make sense to me that Windows is that
peculiar here. The filesystem may be case-insensitive, but it does
preserve case, and besides, don't the .svn folders store all the actions
you want to commit? I don't understand why you shouldn't be able to do
"svn mv foo FOO" so long as there isn't an existing FOO (and in Windows
there can't be). The resulting "svn: Cannot move path 'foo' into
itself" error to me is best characterized as a bug, rather than a
platform limitation. I can type "ren foo FOO" with no trouble
whatsoever, after all.

Now you can get into some weird errors if you have case-conflicts in the
repo ("foo" and "FOO" in the same directory) and this is a Windows
limitation (one which can cause silent corrupting of your WC or else a
failure to checkout, depending on how you checkout/update). The
behavior here is still suboptimal--it seems svn should detect what has
happened and error out instead of silently corrupting your WC--but this
is a rare problem (and not the point of your question either).

--Todd

> -----Original Message-----
> From: Jan Hendrik [mailto:list.jan.hendrik_at_gmail.com]
> Sent: Wednesday, November 05, 2008 10:09 AM
> To: users_at_subversion.tigris.org
> Subject: Rename multiple files in repository
>
> Hi all,
>
> I have to rename a few dozen files from upper to lower case.
> Obviously this is not so straight forward on Windows, so I would
> prefer doing this directly in the repository. However, as far as I
can
> see that works for one file at a time only, resulting in as many
> commits. Is that so or is there some way to have it all in one?
>
> I thought about a Knoppix live CD, but even if it had SCN loaded
> and were able to connect to the repository and check out a WC
> this still would be on an NTFS filesystem. I have no full meal Linux
> setup available and no spare partition I could feed Knoppix with.
>
> Another attempt was to check out to a Linkstation (NAS) which
> runs some embedded Linux and reportedly ext2 filesystem served
> through Samba, but both SVN and TSVN failed by renaming "a file
> onto itself". Obviously the Windows peculiarity prevails here over
> the *nix peculiarity. The Linkstation is not hacked, thus no shell or
> telnet access as far as I know about.
>
> TIA for any suggestion.
>
> Jan Hendrik
> ---------------------------------------
> Freedom quote:
>
> But in the final joined at the table they eat the poor's bread.
> -- Bert Brecht, Threepenny Opera (1928)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-05 18:50:37 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.