equal
deleted
inserted
replaced
283 # module directory is copied/moved from another module then the |
283 # module directory is copied/moved from another module then the |
284 # revision is the module root and its parent the source revision in |
284 # revision is the module root and its parent the source revision in |
285 # the parent module. A revision has at most one parent. |
285 # the parent module. A revision has at most one parent. |
286 # |
286 # |
287 class svn_source(converter_source): |
287 class svn_source(converter_source): |
288 def __init__(self, ui, url, revs=None): |
288 def __init__(self, ui, repotype, url, revs=None): |
289 super(svn_source, self).__init__(ui, url, revs=revs) |
289 super(svn_source, self).__init__(ui, repotype, url, revs=revs) |
290 |
290 |
291 if not (url.startswith('svn://') or url.startswith('svn+ssh://') or |
291 if not (url.startswith('svn://') or url.startswith('svn+ssh://') or |
292 (os.path.exists(url) and |
292 (os.path.exists(url) and |
293 os.path.exists(os.path.join(url, '.svn'))) or |
293 os.path.exists(os.path.join(url, '.svn'))) or |
294 issvnurl(ui, url)): |
294 issvnurl(ui, url)): |
1110 return self.join('hg-shamap') |
1110 return self.join('hg-shamap') |
1111 |
1111 |
1112 def authorfile(self): |
1112 def authorfile(self): |
1113 return self.join('hg-authormap') |
1113 return self.join('hg-authormap') |
1114 |
1114 |
1115 def __init__(self, ui, path): |
1115 def __init__(self, ui, repotype, path): |
1116 |
1116 |
1117 converter_sink.__init__(self, ui, path) |
1117 converter_sink.__init__(self, ui, repotype, path) |
1118 commandline.__init__(self, ui, 'svn') |
1118 commandline.__init__(self, ui, 'svn') |
1119 self.delete = [] |
1119 self.delete = [] |
1120 self.setexec = [] |
1120 self.setexec = [] |
1121 self.delexec = [] |
1121 self.delexec = [] |
1122 self.copies = [] |
1122 self.copies = [] |