mercurial/discovery.py
changeset 35195 bc775b8cc020
parent 32812 4374e88e808c
child 35314 483b5dd0f1aa
--- a/mercurial/discovery.py	Fri Oct 06 04:17:36 2017 +0530
+++ b/mercurial/discovery.py	Thu Nov 16 03:52:38 2017 +0100
@@ -21,6 +21,7 @@
     branchmap,
     error,
     phases,
+    scmutil,
     setdiscovery,
     treediscovery,
     util,
@@ -365,11 +366,8 @@
             if None in unsyncedheads:
                 # old remote, no heads data
                 heads = None
-            elif len(unsyncedheads) <= 4 or repo.ui.verbose:
-                heads = ' '.join(short(h) for h in unsyncedheads)
             else:
-                heads = (' '.join(short(h) for h in unsyncedheads[:4]) +
-                         ' ' + _("and %s others") % (len(unsyncedheads) - 4))
+                heads = scmutil.nodesummaries(repo, unsyncedheads)
             if heads is None:
                 repo.ui.status(_("remote has heads that are "
                                  "not known locally\n"))