comparison tests/test-convert-cvs.t @ 15131:7c26ce9edbd2

rollback: only restore dirstate and branch when appropriate. If the working dir parent was destroyed by rollback, then the old behaviour is perfectly reasonable: restore dirstate, branch, and bookmarks. That way the working dir moves back to an existing changeset rather than becoming an orphan. But if the working dir parent was unaffected -- say, you updated to an older changeset and then did rollback -- then it's silly to restore dirstate and branch. So don't do that. Leave the status of the working dir alone. (But always restore bookmarks, because that file refers to changeset IDs that may have been destroyed.)
author Greg Ward <greg@gerg.ca>
date Sun, 18 Sep 2011 19:59:33 -0400
parents 1e497df514e2
children f2719b387380
comparison
equal deleted inserted replaced
15130:3d44e68360a6 15131:7c26ce9edbd2
110 converting... 110 converting...
111 2 Initial revision 111 2 Initial revision
112 1 import 112 1 import
113 filtering out empty revision 113 filtering out empty revision
114 repository tip rolled back to revision 0 (undo commit) 114 repository tip rolled back to revision 0 (undo commit)
115 working directory now based on revision -1
116 0 ci0 115 0 ci0
117 updating tags 116 updating tags
118 $ hgcat b/c 117 $ hgcat b/c
119 c 118 c
120 c 119 c