Patchwork D9566: debugdiscovery: fix swapped heads and roots

login
register
mail settings
Submitter phabricator
Date Dec. 11, 2020, 2:27 p.m.
Message ID <differential-rev-PHID-DREV-ci7uhe5azrzkhlir2bke-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47864/
State Superseded
Headers show

Comments

phabricator - Dec. 11, 2020, 2:27 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Patch provided without comment…

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9566

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -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)