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

Re: Renaming only case on Windows

From: Jack Repenning <jrepenning_at_collab.net>
Date: 2003-08-31 01:44:18 CEST

At 1:08 AM +0200 8/31/03, Daniel Schlyder wrote:
>Hi list,
>
>I'm a new user of Subversion (and RCS altogether -- what a great productivity
>booster!). I'm trying to rename a file in a working copy on Windows XP:

Well, you skipped prety quick from "the easy things that don't work"
to "really huge things that, yes, do work." There are one or two
middle-sized ways to get the effect:

>$ svn mv foo Foo
>
>Fails with error:
>svn: Trying to use an unsupported feature
>svn: cannot move path 'foo' into itself

Your underlying file system, Windows, thinks "foo" and "Foo" are the
same file (looks like you understand that well enough). SVN is, in
general, very careful not to trash files you already have (this will
come up again in a moment). The quickest way to make this approach
work is to use a filesystem that understands what you're trying to
say (a case-sensitive file system).

>$ svn mv foo temp
>$ svn mv temp Foo --force
>
>Fails with error:
>svn: Trying to use an unsupported feature
>svn: Cannot copy or move 'temp' -- it's not in the repository yet,
>perhaps because it is a copy or is inside a copied tree.
>Try committing first.

In between your two "svn mv" commands, you could "svn commit" (as
suggested by the messages). You'd also need an "svn update", I think.

>$ svn mv file:///repos/trunk/foo file:///repos/trunk/Foo -m "Renamed file."
>$ svn up
>
>Fails with error:
>svn: Obstructed update
>svn: failed to add file 'Foo': object of the same name already exists

Here, "rm foo" between the svn commands would have made it all work.
Or, in general, when you see "obstructed update," you can respond by
removing or renaming the obstructing file. This is another case of
SVN's care not to trash anything of yours.

-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Aug 31 01:45:22 2003

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.