diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -1026,9 +1026,8 @@ def stripwrapper(orig, ui, repo, nodelis strip_nodes = set([repo[n].hex() for n in nodelist]) common_nodes = histedit_nodes & strip_nodes if common_nodes: - raise util.Abort(_('unable to strip %s. Nodes are ' - 'used by history edit in progress.') - % ', '.join(common_nodes)) + raise util.Abort(_("histedit in progress, can't strip %s") + % ', '.join(node.short(x) for x in common_nodes)) return orig(ui, repo, nodelist, *args, **kwargs) extensions.wrapfunction(repair, 'strip', stripwrapper) diff --git a/tests/test-histedit-edit.t b/tests/test-histedit-edit.t --- a/tests/test-histedit-edit.t +++ b/tests/test-histedit-edit.t @@ -88,7 +88,7 @@ Go at a random point and try to continue Try to delete necessary commit $ hg strip -r 652413bf663e - abort: unable to strip 652413bf663ef2a641cab26574e46d5f5a64a55a. Nodes are used by history edit in progress. + abort: histedit in progress, can't strip 363532343133 [255] commit, then edit the revision