Patchwork D740: tersestatus: sort the dictionary before iterating on it

login
register
mail settings
Submitter phabricator
Date Sept. 20, 2017, 4:28 p.m.
Message ID <a7c497a350834d13c8f4fbd78b42ba45@localhost.localdomain>
Download mbox | patch
Permalink /patch/24053/
State Not Applicable
Headers show

Comments

phabricator - Sept. 20, 2017, 4:28 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1d6558f5ea74: tersestatus: sort the dictionary before iterating on it (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D740?vs=1909&id=1930

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

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -536,7 +536,7 @@ 
 
         rs = []
         newls = []
-        for par, files in pardict.iteritems():
+        for par, files in sorted(pardict.iteritems()):
             lenpar = numfiles(par)
             if lenpar == len(files):
                 newls.append(par)