tests/test-rollback.t
branchstable
changeset 13446 1e497df514e2
parent 13185 c6e00dfcdcb8
child 13956 ffb5c09ba822
child 13957 044e1356327d
equal deleted inserted replaced
13445:61a898576888 13446:1e497df514e2
    18   date:        Thu Jan 01 00:00:00 1970 +0000
    18   date:        Thu Jan 01 00:00:00 1970 +0000
    19   summary:     test
    19   summary:     test
    20   
    20   
    21   $ hg status
    21   $ hg status
    22   $ hg rollback
    22   $ hg rollback
    23   rolling back to revision -1 (undo commit)
    23   repository tip rolled back to revision -1 (undo commit)
       
    24   working directory now based on revision -1
    24   $ hg verify
    25   $ hg verify
    25   checking changesets
    26   checking changesets
    26   checking manifests
    27   checking manifests
    27   crosschecking files in changesets and manifests
    28   crosschecking files in changesets and manifests
    28   checking files
    29   checking files
    35 
    36 
    36   $ hg commit -m "test2"
    37   $ hg commit -m "test2"
    37   $ hg branch test
    38   $ hg branch test
    38   marked working directory as branch test
    39   marked working directory as branch test
    39   $ hg rollback
    40   $ hg rollback
    40   rolling back to revision -1 (undo commit)
    41   repository tip rolled back to revision -1 (undo commit)
       
    42   working directory now based on revision -1
    41   $ hg branch
    43   $ hg branch
    42   default
    44   default
    43 
    45 
    44 Test issue 1635 (commit message saved)
    46 Test issue 1635 (commit message saved)
    45 .hg/last-message.txt:
    47 .hg/last-message.txt:
    52   $ hg commit -m "test3"
    54   $ hg commit -m "test3"
    53   $ hg branch test
    55   $ hg branch test
    54   marked working directory as branch test
    56   marked working directory as branch test
    55   $ rm .hg/undo.branch
    57   $ rm .hg/undo.branch
    56   $ hg rollback
    58   $ hg rollback
    57   rolling back to revision -1 (undo commit)
    59   repository tip rolled back to revision -1 (undo commit)
    58   Named branch could not be reset, current branch still is: test
    60   Named branch could not be reset, current branch still is: test
       
    61   working directory now based on revision -1
    59   $ hg branch
    62   $ hg branch
    60   test
    63   test
    61 
    64 
    62 rollback by pretxncommit saves commit message (issue 1635)
    65 rollback by pretxncommit saves commit message (issue 1635)
    63 
    66