Commit Graph

7 Commits

Author SHA1 Message Date
David Stanek
6bd96196bb Remove the svn+ from svn+https urls before calling the Subversion API. This was already being done for svn+http urls. 2009-07-20 16:00:37 -04:00
Patrick Mezard
735b575536 Revive svn+http(s) URLs support (issue94)
Telling svn from mercurial repository automatically is not always possible, or
at least not seamlessly. Let 'http://repo.com/svn' be an svn repository,
protected with basic authentication. Trying to clone it directly does something
like:

1- Open it like a mercurial repository:
  * send between command, ask for credentials, fail
  * fallback to static-http, ask for crendentials two times, fail
2- Open it like an svn repository

Mercurial [auth] facility is helpful here, but few people know about it, and it
may seem weird to store svn credentials in mercurial configuration. An svn-like
password manager would not help either because all connections attempts in [1]
fail and it's unlikely we would store credentials in this situation. Instead,
we can clone 'svn+http://repo.com/svn', which will skip step [1].
2009-07-18 20:44:33 -05:00
Patrick Mezard
54d3cf4643 svnrepo: expose the same svnurl than SubversionRepo
Since the ssh+svn URLs depend on supplied credentials, and because we want to
get the actual SVN URL without talking to the remote repository, we duplicate
the work done by SubversionRepo.
2009-07-18 20:44:33 -05:00
Patrick Mezard
3cdd5ec399 svnwrappers: override svn+ssh credentials with supplied ones if any
svn+ssh URLs are special because the authentication layer is not handled by
svn, so they must contain the username to be resolved seamlessly. Until now,
credentials supplied from the command line were ignored when rewriting those
URLs. Fix that.
2009-07-18 20:44:33 -05:00
Augie Fackler
a059a4c8da urls: Make sure we preserve username in urls given to ssh. 2009-06-06 11:53:21 -05:00
Augie Fackler
94a7ecbe68 Reorganize to have a more conventional module structure.
This means that hgsubversion now uses absolute imports instead of
relative ones, which makes the tests more reliable.
2009-05-13 21:39:39 -05:00
Daniel Tang
4a245c23b5 Add support for user:pass@url repositories to be hg-like 2009-04-06 11:19:51 -04:00