comparison tests/test_fetch_branches.py @ 576:d96aa92d9ad9

tests: silence test suite by using quiet UIs everywhere
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 26 Feb 2010 14:50:22 +0100
parents d17cec76e769
children 44c56a7727c4
comparison
equal deleted inserted replaced
575:c278a225b750 576:d96aa92d9ad9
1 import unittest 1 import unittest
2 2
3 from mercurial import hg 3 from mercurial import hg
4 from mercurial import node 4 from mercurial import node
5 from mercurial import ui
6 from mercurial import util as hgutil 5 from mercurial import util as hgutil
7 6
8 import test_util 7 import test_util
9 8
10 9
16 noupdate=noupdate, subdir=subdir) 15 noupdate=noupdate, subdir=subdir)
17 16
18 def _load_fixture_and_fetch_with_anchor(self, fixture_name, anchor): 17 def _load_fixture_and_fetch_with_anchor(self, fixture_name, anchor):
19 test_util.load_svndump_fixture(self.repo_path, fixture_name) 18 test_util.load_svndump_fixture(self.repo_path, fixture_name)
20 source = '%s#%s' % (test_util.fileurl(self.repo_path), anchor) 19 source = '%s#%s' % (test_util.fileurl(self.repo_path), anchor)
21 repo = hg.clone(ui.ui(), source=source, dest=self.wc_path) 20 repo = hg.clone(self.ui(), source=source, dest=self.wc_path)
22 return hg.repository(ui.ui(), self.wc_path) 21 return hg.repository(self.ui(), self.wc_path)
23 22
24 def openbranches(self, repo): 23 def openbranches(self, repo):
25 hctxs = [repo[hn] for hn in repo.heads()] 24 hctxs = [repo[hn] for hn in repo.heads()]
26 branches = set(ctx.branch() for ctx in hctxs if 25 branches = set(ctx.branch() for ctx in hctxs if
27 ctx.extra().get('close', None) != '1') 26 ctx.extra().get('close', None) != '1')