Mercurial > public > mercurial-scm > hg
diff hgext/convert/subversion.py @ 6172:0cd6846e5200
convert: allow svn trunk/branches/tags detection to be skipped
- eluding convert.svn.branches defaults to "branches"
- convert.svn.branches= disables branches detection
- convert.svn.branches=/ is equivalent to former convert.svn.branches=
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 24 Feb 2008 17:58:53 +0100 |
parents | 4e87e785c5bf |
children | 963000ed8cac |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Thu Feb 21 08:24:58 2008 -0500 +++ b/hgext/convert/subversion.py Sun Feb 24 17:58:53 2008 +0100 @@ -236,6 +236,8 @@ def getcfgpath(name, rev): cfgpath = self.ui.config('convert', 'svn.' + name) + if cfgpath is not None and cfgpath.strip() == '': + return None path = (cfgpath or name).strip('/') if not self.exists(path, rev): if cfgpath: @@ -342,6 +344,9 @@ def gettags(self): tags = {} + if self.tags is None: + return tags + start = self.revnum(self.head) try: for entry in get_log(self.url, [self.tags], 0, start):