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

Re: best way to revert a file rename

From: Adrian Bridgett <adrian.bridgett_at_opsera.com>
Date: 2005-12-02 10:06:57 CET

Ryan Schmidt wrote:

> On Nov 30, 2005, at 14:01, Adrian Bridgett wrote:
>
>> So imagine I've just done "svn mv foo.original foo.renamed" and now
>> want to revert this.
>> [...]
>> Ideally I want SVN to forget I even tried to rename the file. One
>> thing I can guarantee is that no commit has been done - only a mv.
>>
>> Hmm - looks like what I need is:
>>
>> svn revert foo.original
>> svn revert foo.renamed
>> rm foo.renamed
>
>
> Yes, that's exactly what I would have done.

Thanks for the confirmation. I'll submit my changes to svn_load_dirs
once I've tested them some more. To revert any "mkdir"s that may have
been performed, I've had to do "svn rm --force" on the directories (in
the reverse order to that which they were created). Just in case any
googles for this info :-)

Adrian

-- 
Adrian Bridgett <adrian.bridgett@opsera.com>,  Software Architect
Mobile: +44 (0) 7773-778251
GoogleTalk: adrian.bridgett@gmail.com
Skype: abridgett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 2 10:10:01 2005

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.