comparison tests/test_urls.py @ 710:db56e65906f4

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.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 29 Sep 2010 18:04:26 +0200
parents 181ec1929b2a
children ae5968ffe6fe
comparison
equal deleted inserted replaced
709:2c278d71b73d 710:db56e65906f4
48 48
49 def test_url_rewriting(self): 49 def test_url_rewriting(self):
50 ui = test_util.ui.ui() 50 ui = test_util.ui.ui()
51 ui.setconfig('hgsubversion', 'username', 'bob') 51 ui.setconfig('hgsubversion', 'username', 'bob')
52 repo = svnrepo.svnremoterepo(ui, 'svn+ssh://joe@foo/bar') 52 repo = svnrepo.svnremoterepo(ui, 'svn+ssh://joe@foo/bar')
53 self.assertEqual('svn+ssh://bob@foo/bar', repo.svnurl) 53 self.assertEqual('svn+ssh://bob@foo/bar', repo.svnauth[0])
54 54
55 repo = svnrepo.svnremoterepo(ui, 'svn+http://joe@foo/bar') 55 repo = svnrepo.svnremoterepo(ui, 'svn+http://joe@foo/bar')
56 self.assertEqual(('http://foo/bar', 'bob', None), repo.svnauth) 56 self.assertEqual(('http://foo/bar', 'bob', None), repo.svnauth)
57 57
58 repo = svnrepo.svnremoterepo(ui, 'svn+https://joe@foo/bar') 58 repo = svnrepo.svnremoterepo(ui, 'svn+https://joe@foo/bar')