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

Re: How to move a directory, change it and move it back

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Tue, 24 Nov 2009 03:46:17 -0600

On Nov 24, 2009, at 03:38, Donald Kwakkel wrote:

> Ryan Schmidt wrote:

>

>> On Nov 24, 2009, at 01:25, Donald Kwakkel wrote:
>>
>>> Does someone know if it is possible to move a commited directory, change it and move it back?
>>>
>>> Something like this:
>>>
>>> mkdir f
>>> svn add f
>>> svn commit --message message .
>>> svn rename f g
>>> echo "some text" > g\x.txt
>>> svn add g\x.txt
>>> svn rename g f
>>
>> I think the answer is no, but why do you want to do that? Why not just
>>
>> mkdir f
>> svn add f
>> svn commit --message message .
>> echo "some text" > f\x.txt
>> svn add f\x.txt
>> svn commit --message message .
>
> Just imagine that you are using a graphical frontend (e.g. java eclipse development) and you move a package, add some file and move it back.

All I can say is don't do that. Don't "svn mv" a directory, then "svn mv" it a second time back to where it was, unless you "svn commit" in between. As you've discovered, this does not work.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2423746

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-24 10:47:27 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.