histedit: always define update results
Before, we had a branch that could return None for the update stats.
Let's just return an updateresult instance instead.
Differential Revision: https://phab.mercurial-scm.org/D2693
--- a/hgext/histedit.py Mon Mar 05 00:02:13 2018 -0500
+++ b/hgext/histedit.py Mon Mar 05 00:28:40 2018 -0500
@@ -566,7 +566,7 @@
# edits are "in place" we do not need to make any merge,
# just applies changes on parent for editing
cmdutil.revert(ui, repo, ctx, (wcpar, node.nullid), all=True)
- stats = None
+ stats = mergemod.updateresult(0, 0, 0, 0)
else:
try:
# ui.forcemerge is an internal variable, do not document