Rollback svn move / rename

I am mentally absent from the mv folder in my svn trunk instead of forking it. I could just get it back, but I'm afraid I’ll lose the story. What is the best way to undo this?

Edit: It should be clear to me that I made a move to the repository, not my working copy, so it was an automatic commit.

+5
source share
4 answers

See the subversion manual on Undo Changes to undo your erroneous changes.

svn merge "" , . , , . ( , --revision 303: 302, - change -303.)

svn merge -c -303 http://svn.example.com/repos/calc/trunk
+4

, , , .

. .

+3

:

svn revert PATH
+1

.

     svn mv -m 'move it!' \
         http://svn.example.com/repos/calc/trunk \
         http://svn.example.com/repos/calc/foo

    svn log http://svn.example.com/repos/calc/trunk

...

    ------------------------------------------------------------------------
    r17610 | john.doe | 2017-08-01 11:02:43 -0300 (tue, 01 aug 2017) | 1 line

    move it!
    ------------------------------------------------------------------------
    r17581 | john.doe | 2017-07-31 17:42:57 -0300 (mon, 31 jul 2017) | 1 line

    fix bug
    ------------------------------------------------------------------------

17581 HEAD

 svn mv -m 'fix absently minded move' \
     http://svn.example.com/repos/calc/trunk@17581 \
     http://svn.example.com/repos/calc/trunk

( )

0

All Articles