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

RE: Problem with svn move command on Windows

From: Roger Lipscombe <rogerl_at_1e.com>
Date: 2006-02-06 10:50:49 CET

From: Scott Palmer [mailto:scott.palmer@2connected.org]
>
> On 3-Feb-06, at 10:07 AM, Roger Lipscombe wrote:
> > Sorry, I'll clarify: svn moved the file to the wrong place.
> >
> > I was expecting it to move the file
> > trunk\Products\Foo30\FooClient\update-version.vbs to
> > trunk\Internal\update-version.vbs.
> >
> > What it did was move the file to trunk\Products\Foo30, renaming it
to
> > "Internal".

> Unless the folder "Internal" already existed, I believe svn did the
> right thing.

No. It didn't. Count the ..\'s in my original command:

D:\Source\trunk\Products\Foo30\FooClient>
svn move update-version.vbs ..\..\..\Internal

What it should have done is moved it up 3 directories, and then put it
in the existing directory called 'Internal' at that level.

What it did was move the file up one directory and rename it, as if I'd
typed "svn move update-version.vbs ..\Internal"

Here's another example. I've broken the lines after the prompt, to make
the commands clearer.

I'm expecting the same behaviour as the Windows "move" command, which
you can see at the end of this transcript:

--------- cut here ---------

D:\Source\trunk\Products\Foo30\FooClient>
svn move Version.h ..\..\..\Internal
A ..\Internal
D Version.h

D:\Source\trunk\Products\Foo30\FooClient>
dir ..

 Volume in drive D has no label.
 Volume Serial Number is 846E-43BB

 Directory of D:\Source\trunk\Products\Foo30

06/02/2006 09:45 <DIR> .
06/02/2006 09:45 <DIR> ..
08/12/2005 12:01 <DIR> Docs
01/02/2006 09:32 <DIR> inc
06/02/2006 09:45 874 Internal
[snip]

D:\Source\trunk\Products\Foo30\FooClient>
move Version.h2 ..\..\..\Internal

D:\Source\trunk\Products\Foo30\FooClient>
dir ..\..\..\Internal

 Volume in drive D has no label.
 Volume Serial Number is 846E-43BB

 Directory of D:\Source\trunk\Internal

[snip]
03/02/2006 15:44 895 Version.h2
               2 File(s) 5,717 bytes
               5 Dir(s) 55,045,963,776 bytes free

--------- cut here ---------

Cheers,
Roger.

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the named addressee. No-one else may use, copy, disclose, distribute or place any reliance on this communication or the information contained herein, unless authorised by 1E. Any views or opinions contained in this communication are those of the author, and 1E does not accept responsibility for them, unless stated otherwise.
If you receive this e-mail in error, please accept our apologies.
1E is a registered company No. 03401322 and its registered office is 18 Bentinck Street, London W1U 2AR

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 6 10:51:58 2006

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.