[PATCH 20 of 24] convert: process splicemap in sorted order

Mads Kiilerich mads at kiilerich.com
Sun Dec 16 16:34:15 CST 2012


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1355687458 -3600
# Node ID d8ae1e3965a185b2dda639c59a34b31b3117e48d
# Parent  b03e365968f876ad504b324c93737434b9397731
convert: process splicemap in sorted order

diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py
+++ b/hgext/convert/convcmd.py
@@ -147,7 +147,7 @@
         map contains valid revision identifiers and merge the new
         links in the source graph.
         """
-        for c in splicemap:
+        for c in sorted(splicemap):
             if c not in parents:
                 if not self.dest.hascommit(self.map.get(c, c)):
                     # Could be in source but not converted during this run


More information about the Mercurial-devel mailing list