##// END OF EJS Templates
histedit: fix preventing strips during histedit...
Durham Goode -
r24626:e767f5ab default
parent child Browse files
Show More
@@ -1030,8 +1030,9 b' def stripwrapper(orig, ui, repo, nodelis'
1030 if os.path.exists(os.path.join(repo.path, 'histedit-state')):
1030 if os.path.exists(os.path.join(repo.path, 'histedit-state')):
1031 state = histeditstate(repo)
1031 state = histeditstate(repo)
1032 state.read()
1032 state.read()
1033 histedit_nodes = set([ctx for (action, ctx) in state.rules])
1033 histedit_nodes = set([repo[rulehash].node() for (action, rulehash)
1034 strip_nodes = set([repo[n].hex() for n in nodelist])
1034 in state.rules if rulehash in repo])
1035 strip_nodes = set([repo[n].node() for n in nodelist])
1035 common_nodes = histedit_nodes & strip_nodes
1036 common_nodes = histedit_nodes & strip_nodes
1036 if common_nodes:
1037 if common_nodes:
1037 raise util.Abort(_("histedit in progress, can't strip %s")
1038 raise util.Abort(_("histedit in progress, can't strip %s")
@@ -87,8 +87,8 b' Go at a random point and try to continue'
87 [255]
87 [255]
88
88
89 Try to delete necessary commit
89 Try to delete necessary commit
90 $ hg strip -r 652413bf663e
90 $ hg strip -r 652413b
91 abort: histedit in progress, can't strip 363532343133
91 abort: histedit in progress, can't strip 652413bf663e
92 [255]
92 [255]
93
93
94 commit, then edit the revision
94 commit, then edit the revision
General Comments 0
You need to be logged in to leave comments. Login now