convert: add directories to subversion from root to leaves
authorPatrick Mezard <pmezard@gmail.com>
Sat, 17 Nov 2007 18:41:31 +0100
changeset 5537 e01c748cb632
parent 5536 fdee5d614fcc
child 5538 dc8fa3482a9a
convert: add directories to subversion from root to leaves
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Sun Nov 11 19:34:00 2007 +0100
+++ b/hgext/convert/subversion.py	Sat Nov 17 18:41:31 2007 +0100
@@ -817,7 +817,8 @@
         add_dirs = [d for d in self.dirs_of(files)
                     if not os.path.exists(self.wjoin(d, '.svn', 'entries'))]
         if add_dirs:
-            self.run('add', non_recursive=True, quiet=True, *add)
+            add_dirs.sort()
+            self.run('add', non_recursive=True, quiet=True, *add_dirs)
         if files:
             self.run('add', quiet=True, *files)
         return files.union(add_dirs)