comparison hgext/convert/subversion.py @ 5760:0145f9afb0e7

Removed tabs and trailing whitespace in python files
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 29 Dec 2007 19:49:48 +0100
parents 4e400863c5ac
children 2baa786c7843
comparison
equal deleted inserted replaced
5759:027264e720aa 5760:0145f9afb0e7
206 brev = self.revid(brevnum, module) 206 brev = self.revid(brevnum, module)
207 self.ui.note('found branch %s at %d\n' % (branch, brevnum)) 207 self.ui.note('found branch %s at %d\n' % (branch, brevnum))
208 self.heads.append(brev) 208 self.heads.append(brev)
209 209
210 if oldmodule: 210 if oldmodule:
211 self.tags = '%s/%s' % (oldmodule, tags) 211 self.tags = '%s/%s' % (oldmodule, tags)
212 else: 212 else:
213 self.tags = '/%s' % tags 213 self.tags = '/%s' % tags
214 214
215 elif cfgtrunk or cfgbranches or cfgtags: 215 elif cfgtrunk or cfgbranches or cfgtags:
216 raise util.Abort('trunk/branch/tags layout expected, but not found') 216 raise util.Abort('trunk/branch/tags layout expected, but not found')
712 if self.wc: 712 if self.wc:
713 os.chdir(self.cwd) 713 os.chdir(self.cwd)
714 714
715 def join(self, name): 715 def join(self, name):
716 return os.path.join(self.wc, '.svn', name) 716 return os.path.join(self.wc, '.svn', name)
717 717
718 def revmapfile(self): 718 def revmapfile(self):
719 return self.join('hg-shamap') 719 return self.join('hg-shamap')
720 720
721 def authorfile(self): 721 def authorfile(self):
722 return self.join('hg-authormap') 722 return self.join('hg-authormap')
748 created = path 748 created = path
749 path = path.replace('\\', '/') 749 path = path.replace('\\', '/')
750 if not path.startswith('/'): 750 if not path.startswith('/'):
751 path = '/' + path 751 path = '/' + path
752 path = 'file://' + path 752 path = 'file://' + path
753 753
754 ui.status(_('initializing svn wc %r\n') % os.path.basename(wcpath)) 754 ui.status(_('initializing svn wc %r\n') % os.path.basename(wcpath))
755 self.run0('checkout', path, wcpath) 755 self.run0('checkout', path, wcpath)
756 756
757 self.wc = wcpath 757 self.wc = wcpath
758 self.opener = util.opener(self.wc) 758 self.opener = util.opener(self.wc)
847 847
848 def add_files(self, files): 848 def add_files(self, files):
849 if files: 849 if files:
850 self.run('add', quiet=True, *files) 850 self.run('add', quiet=True, *files)
851 return files 851 return files
852 852
853 def tidy_dirs(self, names): 853 def tidy_dirs(self, names):
854 dirs = list(self.dirs_of(names)) 854 dirs = list(self.dirs_of(names))
855 dirs.sort(reverse=True) 855 dirs.sort(reverse=True)
856 deleted = [] 856 deleted = []
857 for d in dirs: 857 for d in dirs: