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

svn redo after reverse merge

From: ankush chadha <ankushchadha2003_at_yahoo.com>
Date: Wed, 1 Sep 2010 09:15:59 -0700 (PDT)

Hi All

I am trying to do following operation

file.txt has 100 revisions and located directly under svn://myrepo.org/trunk

1. svn co svn://myrepo.org/trunk/

2. Undoing few changes made to this file
    svn merge -c -100 svn://myrepo.org/trunk/
    svn merge -c -99 svn://myrepo.org/trunk/
        .....
    svn merge -c -90 svn://myrepo.org/trunk/

3. After resolving all the conflicts I do a commit (bulk)
    svn commit -m "Rolling back rev 100 to 90"

4. Now suppose for some reason I want revision 95 back in, the following
command won't work
    svn merge -c 95 svn://myrepo.org/trunk/
    as according to SVN, revision 95 is already there

Whats the best way to put a change back which was already there but rolled back
due to the reverse merge.

One way to do is to perform commit after every single undo merge operation and
rollback the reverse merge to bring the change back in. But I want to avoid
this approach.

Ankush

      
Received on 2010-09-01 18:16:37 CEST

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.