changeset 849:4e43e30e3e7d

Support non-standard tunnels Ideally we'd just specify some form of wildcard svn+* pattern, but that isn't possible without patching mercurial itself as well, so we'll just specify tunnels individually
author Will Wykeham <will@wykeham.net>
date Sat, 13 Aug 2011 00:41:08 +0100
parents f28e0f54a6ef
children d3bc067c0f72
files hgsubversion/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/__init__.py
+++ b/hgsubversion/__init__.py
@@ -177,6 +177,8 @@ def extsetup():
 def reposetup(ui, repo):
     if repo.local():
         svnrepo.generate_repo_class(ui, repo)
+        for tunnel in ui.configlist('hgsubversion', 'tunnels'):
+            hg.schemes['svn+' + tunnel] = svnrepo
 
 _old_local = hg.schemes['file']
 def _lookup(url):