# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1270130761 -7200 # Node ID 1290ab9def8fc793bef96aecf48d01f06af687d5 # Parent 24c73f35f3cff949aa62d8be0b7c6ef17fbff1b4 pull: fix passing credentials in URL. Previously, the parsed URL - with credentials removed - was used for instantiating a new svnremoterepo instance. One option for fixing this is using the unparsed URL for this instantiation. An even better option, however, is to simply reuse the instance passed to the function as `source'. diff --git a/hgsubversion/wrappers.py b/hgsubversion/wrappers.py --- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -222,8 +222,7 @@ def pull(repo, source, heads=[], force=F if not have_replay: repo.ui.note('fetching stupidly...\n') - # TODO: do credentials specified in the URL still work? - svn = svnrepo.svnremoterepo(repo.ui, svn_url).svn + svn = source.svn meta = repo.svnmeta(svn.uuid, svn.subdir) layout = repo.ui.config('hgsubversion', 'layout', 'auto')