You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lu...@bjservices.com on 2007/03/23 16:16:54 UTC
Changing name capitalization under Windows
We are operating under Windows and are bringing some old files under
version control that are from old DOS days when the filenames were
capitalized by default, e.g. FOO.C. We'd like to rename these according to
more modern standards, but when we try doing "svn rename FOO.C foo.c" we
are told that we "Cannot move path 'FOO.C' onto itself." So far the only
alternative has been to do it directly to the repository, e.g. "svn rename
svn://my.rep/FOO.C svn://my.rep/foo.c" but doing it that way generates a
lot of revisions and is very slow. Is there any other way to do what we
need to do?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changing name capitalization under Windows
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 23, 2007, at 11:34, Greg Thomas wrote:
> On Fri, 23 Mar 2007 11:16:54 -0500, Luke Powell wrote:
>
>> Is there any other way to do what we need to do?
>
> You could checkout the code on to a case sensitive platform (i.e.
> UNIX), perform all the renames, and then do a single commit. If you
> don't have such an OS to hand, simply download VMWare player and one
> of the prebuilt appliances from
> http://www.vmware.com/vmtn/appliances/directory/cat/45 for free, and
> delete it when you're done.
Or if you don't want to futz with VMWare and installing a confusing
Unix-like OS, just use a Mac. Surely someone in your department has a
recent Mac you could use for the purpose. They're very popular. Mac
OS X runs a Unix-like OS, and although the default file system is
case insensitive like Windows', you can create a case sensitive disk
image with the Disk Utility program in the Utilities subfolder of the
Applications folder. Just tell it to use the case sensitive HFS
format, or the UFS format. Make the disk image at least as big as a
checked out working copy would be. Then check out the working copy to
that disk image. (If you made a disk image "foo", the path to the
mounted image will most likely be "/Volumes/foo".) You can do all
your Subversion renames there, check it in, then trash the disk image
and forget about it and hand the Mac back to your coworker and say
"Thank you very much, next time I'll buy a Mac too! :)"
If you need to install Subversion on the Mac first, you can download
binaries here:
http://www.codingmonkeys.de/mbo/ (sidebar on the right)
Or here:
http://metissian.com/projects/macosx/subversion/
--
To reply to the mailing list, please use your mailer's Reply To All
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changing name capitalization under Windows
Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Fri, 23 Mar 2007 11:16:54 -0500, Luke.Powell@bjservices.com wrote:
>Is there any other way to do what we
>need to do?
You could checkout the code on to a case sensitive platform (i.e.
UNIX), perform all the renames, and then do a single commit. If you
don't have such an OS to hand, simply download VMWare player and one
of the prebuilt appliances from
http://www.vmware.com/vmtn/appliances/directory/cat/45 for free, and
delete it when you're done.
Greg
--
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changing name capitalization under Windows
Posted by Duncan Murdoch <mu...@stats.uwo.ca>.
On 3/23/2007 12:16 PM, Luke.Powell@bjservices.com wrote:
> We are operating under Windows and are bringing some old files under
> version control that are from old DOS days when the filenames were
> capitalized by default, e.g. FOO.C. We'd like to rename these according to
> more modern standards, but when we try doing "svn rename FOO.C foo.c" we
> are told that we "Cannot move path 'FOO.C' onto itself." So far the only
> alternative has been to do it directly to the repository, e.g. "svn rename
> svn://my.rep/FOO.C svn://my.rep/foo.c" but doing it that way generates a
> lot of revisions and is very slow. Is there any other way to do what we
> need to do?
There's an FAQ item on this,
http://subversion.tigris.org/faq.html#case-change
and it recommends the slow way in the repository.
Duncan Murdoch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changing name capitalization under Windows
Posted by Andy Levy <an...@gmail.com>.
On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com> wrote:
> Yes, it should be. This is frustrating however. I know that this can be
> done since a simple "ren FOO.C foo.c" works fine, but the functionality
> isn't implemented here. Perhaps I'll see if I can find the right place and
> just implement it myself...
The difference is that on Windows filesystems, FOO.C and foo.c are the
same file. On case-sensitive filesystems (and Subversion), they're 2
different files and the "rename" is a copy & delete (as I recall, that
is). When you use ren the Windows filesystem basically says "whatever,
don't really care, it'll just flip some bits around" but when you do
the rename with Subversion, Windows is saying "wait, you can't copy
FOO.C to foo.c, it's the same thing."
I was going to suggest the VMWare Player route for the one-time
switch, but Greg Thomas beat me to it while I was writing the previous
paragraph.
> "Matt Sickler" <cr...@gmail.com> wrote on 03/23/2007 11:27:39
> AM:
>
> > well, that is their decision - windows simply wont let you do it (
> > unless you use a non NTFS / FAT filesystem, that could work, maybe )
> >
> > it should be a one time deal anyway, right?
>
> > On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com>
> wrote:
> > It would be nice, but there are certain elements of the department that
> > are... reluctant to work on anything but Windows.
> >
> > "Matt Sickler" <crazyfordynamite@gmail.com > wrote on 03/23/2007
> 11:23:52
> > AM:
> >
> > > do the rename on a filesystem that cares about case? ( like linux )
> >
> > > On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com>
> > wrote:
> > > We are operating under Windows and are bringing some old files under
> > > version control that are from old DOS days when the filenames were
> > > capitalized by default, e.g. FOO.C. We'd like to rename these
> according
> > to
> > > more modern standards, but when we try doing "svn rename FOO.C foo.c"
> we
> > > are told that we "Cannot move path ' FOO.C' onto itself." So far the
> > only
> > > alternative has been to do it directly to the repository, e.g. "svn
> > rename
> > > svn://my.rep/FOO.C svn://my.rep/foo.c" but doing it that way generates
> a
> > > lot of revisions and is very slow. Is there any other way to do what
> we
> > > need to do?
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > > For additional commands, e-mail: users-help@subversion.tigris.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changing name capitalization under Windows
Posted by JR...@penntraffic.com.
Would cygwin work in this case?
"Matt Sickler" <cr...@gmail.com>
Phone:
03/23/2007 12:27 PM
To
"Luke.Powell@bjservices.com" <Lu...@bjservices.com>
cc
users@subversion.tigris.org
Subject
Re: Changing name capitalization under Windows
well, that is their decision - windows simply wont let you do it ( unless
you use a non NTFS / FAT filesystem, that could work, maybe )
it should be a one time deal anyway, right?
On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com> wrote:
It would be nice, but there are certain elements of the department that
are... reluctant to work on anything but Windows.
"Matt Sickler" <crazyfordynamite@gmail.com > wrote on 03/23/2007 11:23:52
AM:
> do the rename on a filesystem that cares about case? ( like linux )
> On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com>
wrote:
> We are operating under Windows and are bringing some old files under
> version control that are from old DOS days when the filenames were
> capitalized by default, e.g. FOO.C. We'd like to rename these according
to
> more modern standards, but when we try doing "svn rename FOO.C foo.c" we
> are told that we "Cannot move path ' FOO.C' onto itself." So far the
only
> alternative has been to do it directly to the repository, e.g. "svn
rename
> svn://my.rep/FOO.C svn://my.rep/foo.c" but doing it that way generates a
> lot of revisions and is very slow. Is there any other way to do what we
> need to do?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changing name capitalization under Windows
Posted by Lu...@bjservices.com.
Yes, it should be. This is frustrating however. I know that this can be
done since a simple "ren FOO.C foo.c" works fine, but the functionality
isn't implemented here. Perhaps I'll see if I can find the right place and
just implement it myself...
"Matt Sickler" <cr...@gmail.com> wrote on 03/23/2007 11:27:39
AM:
> well, that is their decision - windows simply wont let you do it (
> unless you use a non NTFS / FAT filesystem, that could work, maybe )
>
> it should be a one time deal anyway, right?
> On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com>
wrote:
> It would be nice, but there are certain elements of the department that
> are... reluctant to work on anything but Windows.
>
> "Matt Sickler" <crazyfordynamite@gmail.com > wrote on 03/23/2007
11:23:52
> AM:
>
> > do the rename on a filesystem that cares about case? ( like linux )
>
> > On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com>
> wrote:
> > We are operating under Windows and are bringing some old files under
> > version control that are from old DOS days when the filenames were
> > capitalized by default, e.g. FOO.C. We'd like to rename these
according
> to
> > more modern standards, but when we try doing "svn rename FOO.C foo.c"
we
> > are told that we "Cannot move path ' FOO.C' onto itself." So far the
> only
> > alternative has been to do it directly to the repository, e.g. "svn
> rename
> > svn://my.rep/FOO.C svn://my.rep/foo.c" but doing it that way generates
a
> > lot of revisions and is very slow. Is there any other way to do what
we
> > need to do?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changing name capitalization under Windows
Posted by Matt Sickler <cr...@gmail.com>.
well, that is their decision - windows simply wont let you do it ( unless
you use a non NTFS / FAT filesystem, that could work, maybe )
it should be a one time deal anyway, right?
On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com> wrote:
>
> It would be nice, but there are certain elements of the department that
> are... reluctant to work on anything but Windows.
>
> "Matt Sickler" <cr...@gmail.com> wrote on 03/23/2007 11:23:52
> AM:
>
> > do the rename on a filesystem that cares about case? ( like linux )
>
> > On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com>
> wrote:
> > We are operating under Windows and are bringing some old files under
> > version control that are from old DOS days when the filenames were
> > capitalized by default, e.g. FOO.C. We'd like to rename these according
> to
> > more modern standards, but when we try doing "svn rename FOO.C foo.c" we
> > are told that we "Cannot move path 'FOO.C' onto itself." So far the
> only
> > alternative has been to do it directly to the repository, e.g. "svn
> rename
> > svn://my.rep/FOO.C svn://my.rep/foo.c" but doing it that way generates a
> > lot of revisions and is very slow. Is there any other way to do what we
> > need to do?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Re: Changing name capitalization under Windows
Posted by Lu...@bjservices.com.
It would be nice, but there are certain elements of the department that
are... reluctant to work on anything but Windows.
"Matt Sickler" <cr...@gmail.com> wrote on 03/23/2007 11:23:52
AM:
> do the rename on a filesystem that cares about case? ( like linux )
> On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com>
wrote:
> We are operating under Windows and are bringing some old files under
> version control that are from old DOS days when the filenames were
> capitalized by default, e.g. FOO.C. We'd like to rename these according
to
> more modern standards, but when we try doing "svn rename FOO.C foo.c" we
> are told that we "Cannot move path 'FOO.C' onto itself." So far the
only
> alternative has been to do it directly to the repository, e.g. "svn
rename
> svn://my.rep/FOO.C svn://my.rep/foo.c" but doing it that way generates a
> lot of revisions and is very slow. Is there any other way to do what we
> need to do?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Changing name capitalization under Windows
Posted by Matt Sickler <cr...@gmail.com>.
do the rename on a filesystem that cares about case? ( like linux )
On 3/23/07, Luke.Powell@bjservices.com <Lu...@bjservices.com> wrote:
>
> We are operating under Windows and are bringing some old files under
> version control that are from old DOS days when the filenames were
> capitalized by default, e.g. FOO.C. We'd like to rename these according to
> more modern standards, but when we try doing "svn rename FOO.C foo.c" we
> are told that we "Cannot move path 'FOO.C' onto itself." So far the only
> alternative has been to do it directly to the repository, e.g. "svn rename
> svn://my.rep/FOO.C svn://my.rep/foo.c" but doing it that way generates a
> lot of revisions and is very slow. Is there any other way to do what we
> need to do?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
RE: Changing name capitalization under Windows
Posted by Méresse Christophe <ch...@nagra.com>.
> -----Original Message-----
> From: Luke.Powell@bjservices.com [mailto:Luke.Powell@bjservices.com]
> Sent: vendredi, 23. mars 2007 17:17
> To: users@subversion.tigris.org
> Subject: Changing name capitalization under Windows
>
> We are operating under Windows and are bringing some old
> files under version control that are from old DOS days when
> the filenames were capitalized by default, e.g. FOO.C. We'd
> like to rename these according to more modern standards, but
> when we try doing "svn rename FOO.C foo.c" we are told that
> we "Cannot move path 'FOO.C' onto itself." So far the only
> alternative has been to do it directly to the repository,
> e.g. "svn rename svn://my.rep/FOO.C svn://my.rep/foo.c" but
> doing it that way generates a lot of revisions and is very
> slow. Is there any other way to do what we need to do?
Just an idea (not certain that it works): Try with Cygwin (http://www.cygwin.com/)
Regards
Christophe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org