merge: check that there are no conflicts after --abort
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 24 Jan 2020 16:00:54 -0800
changeset 44175 2b6632d64328
parent 44174 75c2ca094d3a
child 44176 6744859ff3ee
merge: check that there are no conflicts after --abort Same idea as in abcc82bf0717 (clean: check that there are no conflicts after, 2020-01-24). We should reuse more code here, but that will come later. Differential Revision: https://phab.mercurial-scm.org/D7994
mercurial/hg.py
--- a/mercurial/hg.py	Fri Jan 24 15:07:44 2020 -0800
+++ b/mercurial/hg.py	Fri Jan 24 16:00:54 2020 -0800
@@ -1183,8 +1183,8 @@
 
     repo.ui.status(_(b"aborting the merge, updating back to %s\n") % node[:12])
     stats = mergemod.update(repo, node, branchmerge=False, force=True)
+    assert stats.unresolvedcount == 0
     _showstats(repo, stats)
-    return stats.unresolvedcount > 0
 
 
 def _incoming(