debugdiscovery: fix swapped heads and roots
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 11 Dec 2020 15:25:11 +0100
changeset 46111 9e24b3d8e896
parent 46110 d90f439ff19f
child 46112 d6afa9c149c3
debugdiscovery: fix swapped heads and roots Patch provided without comment… Differential Revision: https://phab.mercurial-scm.org/D9566
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Fri Dec 11 12:51:09 2020 +0100
+++ b/mercurial/debugcommands.py	Fri Dec 11 15:25:11 2020 +0100
@@ -1058,8 +1058,8 @@
     data[b'nb-revs'] = len(all)
     data[b'nb-revs-common'] = len(common)
     data[b'nb-revs-missing'] = len(missing)
-    data[b'nb-missing-heads'] = len(roots_missing)
-    data[b'nb-missing-roots'] = len(heads_missing)
+    data[b'nb-missing-heads'] = len(heads_missing)
+    data[b'nb-missing-roots'] = len(roots_missing)
     data[b'nb-ini_und'] = len(initial_undecided)
     data[b'nb-ini_und-heads'] = len(heads_initial_undecided)
     data[b'nb-ini_und-roots'] = len(roots_initial_undecided)