changeset 18368:de685145f5c2

largefiles: upload files in sorted order
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 12 Dec 2012 02:38:14 +0100
parents ae7215f4f7b9
children 2150e70c0ee1
files hgext/largefiles/overrides.py tests/test-largefiles.t
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Wed Dec 12 02:38:14 2012 +0100
+++ b/hgext/largefiles/overrides.py	Wed Dec 12 02:38:14 2012 +0100
@@ -1028,7 +1028,7 @@
                     files.add(f)
         toupload = toupload.union(
             set([f for f in files if lfutil.isstandin(f) and f in ctx]))
-    return toupload
+    return sorted(toupload)
 
 def overrideoutgoing(orig, ui, repo, dest=None, **opts):
     result = orig(ui, repo, dest, **opts)
--- a/tests/test-largefiles.t	Wed Dec 12 02:38:14 2012 +0100
+++ b/tests/test-largefiles.t	Wed Dec 12 02:38:14 2012 +0100
@@ -705,9 +705,9 @@
   
   searching for changes
   largefiles to upload:
-  large8
+  foo
   large
-  foo
+  large8
   
   $ cd ../a