diff rhodecode/model/validators.py @ 3941:3208aaefc9ca beta

Moved all Mercurial imports into hgcompat from vcs
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 03 Jun 2013 23:54:52 +0200
parents 8ddf35e02d05
children 5293d4bbb1ea
line wrap: on
line diff
--- a/rhodecode/model/validators.py	Sat May 25 16:01:41 2013 +0000
+++ b/rhodecode/model/validators.py	Mon Jun 03 23:54:52 2013 +0200
@@ -406,7 +406,7 @@
     def url_handler(repo_type, url, ui=None):
         if repo_type == 'hg':
             from rhodecode.lib.vcs.backends.hg.repository import MercurialRepository
-            from mercurial.httppeer import httppeer
+            from rhodecode.lib.vcs.utils.hgcompat import httppeer
             if url.startswith('http'):
                 ## initially check if it's at least the proper URL
                 ## or does it pass basic auth
@@ -418,7 +418,7 @@
             elif url.startswith('git+http'):
                 raise NotImplementedError()
             else:
-                raise Exception('clone from URI %s not allowed' % (url))
+                raise Exception('clone from URI %s not allowed' % (url,))
 
         elif repo_type == 'git':
             from rhodecode.lib.vcs.backends.git.repository import GitRepository