tests/test-rollback.t
changeset 15623 fc8c7a5ccc4a
parent 15446 c5c9ca3719f9
parent 15615 41885892796e
child 16901 5b89700cce30
equal deleted inserted replaced
15622:86fc364ca5f8 15623:fc8c7a5ccc4a
    41   $ hg commit -m'modify a'
    41   $ hg commit -m'modify a'
    42 
    42 
    43 Test issue 902 (current branch is preserved)
    43 Test issue 902 (current branch is preserved)
    44   $ hg branch test
    44   $ hg branch test
    45   marked working directory as branch test
    45   marked working directory as branch test
       
    46   (branches are permanent and global, did you want a bookmark?)
    46   $ hg rollback
    47   $ hg rollback
    47   repository tip rolled back to revision 0 (undo commit)
    48   repository tip rolled back to revision 0 (undo commit)
    48   working directory now based on revision 0
    49   working directory now based on revision 0
    49   $ hg branch
    50   $ hg branch
    50   default
    51   default
    56 Test rollback of hg before issue 902 was fixed
    57 Test rollback of hg before issue 902 was fixed
    57 
    58 
    58   $ hg commit -m "test3"
    59   $ hg commit -m "test3"
    59   $ hg branch test
    60   $ hg branch test
    60   marked working directory as branch test
    61   marked working directory as branch test
       
    62   (branches are permanent and global, did you want a bookmark?)
    61   $ rm .hg/undo.branch
    63   $ rm .hg/undo.branch
    62   $ hg rollback
    64   $ hg rollback
    63   repository tip rolled back to revision 0 (undo commit)
    65   repository tip rolled back to revision 0 (undo commit)
    64   named branch could not be reset: current branch is still 'test'
    66   named branch could not be reset: current branch is still 'test'
    65   working directory now based on revision 0
    67   working directory now based on revision 0