Mercurial > public > mercurial-scm > hg
diff hgext/histedit.py @ 31527:6f0b7475cf9a
histedit: use safecleanupnode in _aborthistedit (issue5500)
Now nobody in histedit calls the unsafe cleanupnode directly.
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 13 Mar 2017 22:22:18 -0700 |
parents | 9d55494bd0db |
children | 2b599f5468a4 |
line wrap: on
line diff
--- a/hgext/histedit.py Mon Mar 13 22:19:06 2017 -0700 +++ b/hgext/histedit.py Mon Mar 13 22:22:18 2017 -0700 @@ -1209,8 +1209,8 @@ if repo.unfiltered().revs('parents() and (%n or %ln::)', state.parentctxnode, leafs | tmpnodes): hg.clean(repo, state.topmost, show_stats=True, quietempty=True) - cleanupnode(ui, repo, 'created', tmpnodes) - cleanupnode(ui, repo, 'temp', leafs) + safecleanupnode(ui, repo, 'created', tmpnodes) + safecleanupnode(ui, repo, 'temp', leafs) except Exception: if state.inprogress(): ui.warn(_('warning: encountered an exception during histedit '