Commits

Augie Fackler  committed 9e43e2f

Remove .hg/undo so that rollback won't work.

Otherwise, post-histedit rollback leaves you in some weird and
inconsistent state.

  • Participants
  • Parent commits 462d80c

Comments (0)

Files changed (3)

File hg_histedit.py

         except error.LookupError:
             pass
     os.unlink(os.path.join(repo.path, 'histedit-state'))
+    if os.path.exists(repo.sjoin('undo')):
+        os.unlink(repo.sjoin('undo'))
 
 
 def writestate(repo, parentctxnode, created, replaced,

File tests/test-histedit-edit

 hg status
 hg log --limit 1
 
+echo % rollback should not work after a histedit
+hg rollback
+
 echo % EOF

File tests/test-histedit-edit.out

 date:        Thu Jan 01 00:00:00 1970 +0000
 summary:     mess c38516e9ed62 f
 
+% rollback should not work after a histedit
+no rollback information available
 % EOF