[PATCH] convert: detect SVN local repos correctly
Edouard Gomez
ed.gomez at free.fr
Tue Apr 7 10:41:57 UTC 2009
# HG changeset patch
# User Edouard Gomez <ed.gomez at free.fr>
# Date 1239099729 -7200
# Node ID 6098224eb4c3e0afc3cd1f89e2b3a70d99d213af
# Parent dd420d6b448438a813b48f5dcf1ceea2a60e58b3
convert: detect SVN local repos correctly
diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -153,8 +153,11 @@
super(svn_source, self).__init__(ui, url, rev=rev)
if not (url.startswith('svn://') or url.startswith('svn+ssh://') or
- (os.path.exists(url) and
- os.path.exists(os.path.join(url, '.svn'))) or
+ (os.path.exists(url) and (
+ os.path.exists(os.path.join(url, '.svn')) or
+ (os.path.exists(os.path.join(url, 'db')) and
+ os.path.exists(os.path.join(url, 'format')) and
+ os.path.exists(os.path.join(url, 'locks'))))) or
(url.startswith('file://'))):
raise NoRepo("%s does not look like a Subversion repo" % url)
More information about the Mercurial-devel
mailing list