Mercurial > hg
comparison hgext/convert/subversion.py @ 5537:e01c748cb632
convert: add directories to subversion from root to leaves
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 17 Nov 2007 18:41:31 +0100 |
parents | fdee5d614fcc |
children | 2147a734dcf9 |
comparison
equal
deleted
inserted
replaced
5536:fdee5d614fcc | 5537:e01c748cb632 |
---|---|
815 | 815 |
816 def add_files(self, files): | 816 def add_files(self, files): |
817 add_dirs = [d for d in self.dirs_of(files) | 817 add_dirs = [d for d in self.dirs_of(files) |
818 if not os.path.exists(self.wjoin(d, '.svn', 'entries'))] | 818 if not os.path.exists(self.wjoin(d, '.svn', 'entries'))] |
819 if add_dirs: | 819 if add_dirs: |
820 self.run('add', non_recursive=True, quiet=True, *add) | 820 add_dirs.sort() |
821 self.run('add', non_recursive=True, quiet=True, *add_dirs) | |
821 if files: | 822 if files: |
822 self.run('add', quiet=True, *files) | 823 self.run('add', quiet=True, *files) |
823 return files.union(add_dirs) | 824 return files.union(add_dirs) |
824 | 825 |
825 def tidy_dirs(self, names): | 826 def tidy_dirs(self, names): |