##// END OF EJS Templates
convert: allow svn trunk/branches/tags detection to be skipped...
Patrick Mezard -
r6172:0cd6846e default
parent child Browse files
Show More
@@ -95,7 +95,8 b' def convert(ui, src, dest=None, revmapfi'
95 "svn://repo/path/tags" exists, it is looked for tags referencing
95 "svn://repo/path/tags" exists, it is looked for tags referencing
96 converted branches. Default "trunk", "branches" and "tags" values
96 converted branches. Default "trunk", "branches" and "tags" values
97 can be overriden with following options. Set them to paths
97 can be overriden with following options. Set them to paths
98 relative to the source URL.
98 relative to the source URL, or leave them blank to disable
99 autodetection.
99
100
100 --config convert.svn.branches=branches (directory name)
101 --config convert.svn.branches=branches (directory name)
101 specify the directory containing branches
102 specify the directory containing branches
@@ -236,6 +236,8 b' class svn_source(converter_source):'
236
236
237 def getcfgpath(name, rev):
237 def getcfgpath(name, rev):
238 cfgpath = self.ui.config('convert', 'svn.' + name)
238 cfgpath = self.ui.config('convert', 'svn.' + name)
239 if cfgpath is not None and cfgpath.strip() == '':
240 return None
239 path = (cfgpath or name).strip('/')
241 path = (cfgpath or name).strip('/')
240 if not self.exists(path, rev):
242 if not self.exists(path, rev):
241 if cfgpath:
243 if cfgpath:
@@ -342,6 +344,9 b' class svn_source(converter_source):'
342
344
343 def gettags(self):
345 def gettags(self):
344 tags = {}
346 tags = {}
347 if self.tags is None:
348 return tags
349
345 start = self.revnum(self.head)
350 start = self.revnum(self.head)
346 try:
351 try:
347 for entry in get_log(self.url, [self.tags], 0, start):
352 for entry in get_log(self.url, [self.tags], 0, start):
@@ -84,7 +84,8 b' Convert a foreign SCM repository to a Me'
84 "svn://repo/path/tags" exists, it is looked for tags referencing
84 "svn://repo/path/tags" exists, it is looked for tags referencing
85 converted branches. Default "trunk", "branches" and "tags" values
85 converted branches. Default "trunk", "branches" and "tags" values
86 can be overriden with following options. Set them to paths
86 can be overriden with following options. Set them to paths
87 relative to the source URL.
87 relative to the source URL, or leave them blank to disable
88 autodetection.
88
89
89 --config convert.svn.branches=branches (directory name)
90 --config convert.svn.branches=branches (directory name)
90 specify the directory containing branches
91 specify the directory containing branches
General Comments 0
You need to be logged in to leave comments. Login now