Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support cloning from ssh #104

Open
wryfi opened this issue Apr 1, 2013 · 0 comments
Open

support cloning from ssh #104

wryfi opened this issue Apr 1, 2013 · 0 comments

Comments

@wryfi
Copy link

wryfi commented Apr 1, 2013

Trying to clone a mercurial repo via ssh fails as follows:

hg = MercurialRepository('/tmp/foo', create=True, src_url='ssh://[email protected]/marcinkuzminski/vcs')
---------------------------------------------------------------------------
URLError                                  Traceback (most recent call last)
<ipython-input-55-bd9b5320f794> in <module>()
----> 1 hg = MercurialRepository('/tmp/foo', create=True, src_url='ssh://[email protected]/marcinkuzminski/vcs')

/usr/local/lib/python2.7/dist-packages/vcs/backends/hg.py in __init__(self, repo_path, create, baseui, src_url, update_after_clone)
     87         self.baseui = baseui or ui.ui()
     88         # We've set path and ui, now we can set _repo itself
---> 89         self._repo = self._get_repo(create, src_url, update_after_clone)
     90 
     91     @property

/usr/local/lib/python2.7/dist-packages/vcs/backends/hg.py in _get_repo(self, create, src_url, update_after_clone)
    302                     opts.update({'noupdate': True})
    303                 try:
--> 304                     self._check_url(url)
    305                     clone(self.baseui, url, self.path, **opts)
    306 #                except urllib2.URLError:

/usr/local/lib/python2.7/dist-packages/vcs/backends/hg.py in _check_url(self, url)
    283         except Exception, e:
    284             # means it cannot be cloned
--> 285             raise urllib2.URLError(e)
    286 
    287     def _get_repo(self, create, src_url=None, update_after_clone=False):

URLError: <urlopen error <urlopen error unknown url type: ssh>>

Works fine for git (incidentally due to using subprocess module).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant