comparison tests/test_fetch_branches.py @ 866:20e73b5ab6f7

test_util: merge load_svndump_fixture() into TestBase
author Patrick Mezard <patrick@mezard.eu>
date Thu, 19 Apr 2012 18:29:28 +0200
parents 04729f3a3d17
children a80b01ceb1fc
comparison
equal deleted inserted replaced
865:04729f3a3d17 866:20e73b5ab6f7
6 from mercurial import node 6 from mercurial import node
7 from mercurial import util as hgutil 7 from mercurial import util as hgutil
8 8
9 class TestFetchBranches(test_util.TestBase): 9 class TestFetchBranches(test_util.TestBase):
10 def _load_fixture_and_fetch_with_anchor(self, fixture_name, anchor): 10 def _load_fixture_and_fetch_with_anchor(self, fixture_name, anchor):
11 test_util.load_svndump_fixture(self.repo_path, fixture_name) 11 repo_path = self.load_svndump(fixture_name)
12 source = '%s#%s' % (test_util.fileurl(self.repo_path), anchor) 12 source = '%s#%s' % (test_util.fileurl(repo_path), anchor)
13 test_util.hgclone(self.ui(), source, self.wc_path) 13 test_util.hgclone(self.ui(), source, self.wc_path)
14 return hg.repository(self.ui(), self.wc_path) 14 return hg.repository(self.ui(), self.wc_path)
15 15
16 def branches(self, repo): 16 def branches(self, repo):
17 hctxs = [repo[hn] for hn in repo.heads()] 17 hctxs = [repo[hn] for hn in repo.heads()]