Mercurial > hg
diff hgext/convert/convcmd.py @ 18376:13d73bf6be29
convert: make toposort order stable when multiple orderings are possible
The output of some tests are changed. Not necessarily to the better, just other
valid permutations.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 13 Dec 2012 23:15:51 +0100 |
parents | 5965997b7023 |
children | 05acdf8e1f23 |
line wrap: on
line diff
--- a/hgext/convert/convcmd.py Tue Jan 15 02:59:14 2013 +0100 +++ b/hgext/convert/convcmd.py Thu Dec 13 23:15:51 2012 +0100 @@ -175,7 +175,7 @@ revisions without parents. 'parents' must be a mapping of revision identifier to its parents ones. """ - visit = parents.keys() + visit = sorted(parents) seen = set() children = {} roots = []