[PATCH 22 of 24] convert: process subversion branch in a sorted order

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


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1355687458 -3600
# Node ID 1a139a7c00d39c1c6db281347242cd4a46f614bd
# Parent  9620cbd6db4c07b26d6076cb6fee1aea80cf3cfc
convert: process subversion branch in a sorted order

diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -377,7 +377,7 @@
             rpath = self.url.strip('/')
             branchnames = svn.client.ls(rpath + '/' + quote(branches),
                                         rev, False, self.ctx)
-            for branch in branchnames.keys():
+            for branch in sorted(branchnames):
                 module = '%s/%s/%s' % (oldmodule, branches, branch)
                 if not isdir(module, self.last_changed):
                     continue


More information about the Mercurial-devel mailing list