--- a/hgext/convert/subversion.py Fri Jun 27 14:53:30 2008 -0500
+++ b/hgext/convert/subversion.py Fri Jun 27 18:28:45 2008 -0500
@@ -658,8 +658,7 @@
# This will fail if a directory was copied
# from another branch and then some of its files
# were deleted in the same transaction.
- children = self._find_children(path, revnum)
- children.sort()
+ children = util.sort(self._find_children(path, revnum))
for child in children:
# Can we move a child directory and its
# parent in the same commit? (probably can). Could
@@ -732,8 +731,7 @@
parents = []
# check whether this revision is the start of a branch or part
# of a branch renaming
- orig_paths = orig_paths.items()
- orig_paths.sort()
+ orig_paths = util.sort(orig_paths.items())
root_paths = [(p,e) for p,e in orig_paths if self.module.startswith(p)]
if root_paths:
path, ent = root_paths[-1]
@@ -1045,10 +1043,9 @@
return dirs
def add_dirs(self, files):
- add_dirs = [d for d in self.dirs_of(files)
+ add_dirs = [d for d in util.sort(self.dirs_of(files))
if not os.path.exists(self.wjoin(d, '.svn', 'entries'))]
if add_dirs:
- add_dirs.sort()
self.xargs(add_dirs, 'add', non_recursive=True, quiet=True)
return add_dirs
@@ -1058,8 +1055,7 @@
return files
def tidy_dirs(self, names):
- dirs = list(self.dirs_of(names))
- dirs.sort()
+ dirs = util.sort(self.dirs_of(names))
dirs.reverse()
deleted = []
for d in dirs: