# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1285776266 -7200 # Node ID db56e65906f4e3f49ac50c969071acb0bdcb14e0 # Parent 2c278d71b73d49c9a04e9ab8f2b81060d6702a0c svnrepo: make the svnurl property obtain the URL from Subversion. This causes an access to the svnurl property to connect to the repository. One of the tests uses an invalid URL, and so had to be updated to bypass this. diff --git a/hgsubversion/svnrepo.py b/hgsubversion/svnrepo.py --- a/hgsubversion/svnrepo.py +++ b/hgsubversion/svnrepo.py @@ -95,7 +95,7 @@ class svnremoterepo(mercurial.repo.repos @property def svnurl(self): - return self.svnauth[0] + return self.svn.svn_url @propertycache def svn(self): diff --git a/tests/test_urls.py b/tests/test_urls.py --- a/tests/test_urls.py +++ b/tests/test_urls.py @@ -50,7 +50,7 @@ class TestSubversionUrls(test_util.TestB ui = test_util.ui.ui() ui.setconfig('hgsubversion', 'username', 'bob') repo = svnrepo.svnremoterepo(ui, 'svn+ssh://joe@foo/bar') - self.assertEqual('svn+ssh://bob@foo/bar', repo.svnurl) + self.assertEqual('svn+ssh://bob@foo/bar', repo.svnauth[0]) repo = svnrepo.svnremoterepo(ui, 'svn+http://joe@foo/bar') self.assertEqual(('http://foo/bar', 'bob', None), repo.svnauth)