comparison tests/test_fetch_branches.py @ 816:86d124a8768e

Fix hg.clone() calls changed by d976542986d2
author Patrick Mezard <pmezard@gmail.com>
date Wed, 15 Jun 2011 14:44:14 +0200
parents e62e84a9464b
children 312b37bc5e20
comparison
equal deleted inserted replaced
815:e62e84a9464b 816:86d124a8768e
14 noupdate=noupdate, subdir=subdir) 14 noupdate=noupdate, subdir=subdir)
15 15
16 def _load_fixture_and_fetch_with_anchor(self, fixture_name, anchor): 16 def _load_fixture_and_fetch_with_anchor(self, fixture_name, anchor):
17 test_util.load_svndump_fixture(self.repo_path, fixture_name) 17 test_util.load_svndump_fixture(self.repo_path, fixture_name)
18 source = '%s#%s' % (test_util.fileurl(self.repo_path), anchor) 18 source = '%s#%s' % (test_util.fileurl(self.repo_path), anchor)
19 repo = hg.clone(self.ui(), source=source, dest=self.wc_path) 19 test_util.hgclone(self.ui(), source, self.wc_path)
20 return hg.repository(self.ui(), self.wc_path) 20 return hg.repository(self.ui(), self.wc_path)
21 21
22 def branches(self, repo): 22 def branches(self, repo):
23 hctxs = [repo[hn] for hn in repo.heads()] 23 hctxs = [repo[hn] for hn in repo.heads()]
24 openbranches = set(ctx.branch() for ctx in hctxs if 24 openbranches = set(ctx.branch() for ctx in hctxs if