relink: ensure consistent candidate order stable
authorMartin Geisler <mg@lazybytes.net>
Sat, 09 Jan 2010 23:16:36 +0100
branchstable
changeset 10225 6521605bc200
parent 10224 712dc3b6db68
child 10226 e3e41e5e7ff4
child 10231 9bf3ebdb19ae
relink: ensure consistent candidate order
hgext/relink.py
--- a/hgext/relink.py	Sat Jan 09 23:03:33 2010 +0100
+++ b/hgext/relink.py	Sat Jan 09 23:16:36 2010 +0100
@@ -46,7 +46,7 @@
     try:
         remotelock = src.lock()
         try:
-            candidates = collect(src.store.path, ui)
+            candidates = sorted(collect(src.store.path, ui))
             targets = prune(candidates, src.store.path, repo.store.path, ui)
             do_relink(src.store.path, repo.store.path, targets, ui)
         finally: