comparison tests/test_fetch_truncated.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 75f082b5897e
children d2ef7220a079
comparison
equal deleted inserted replaced
575:c278a225b750 576:d96aa92d9ad9
1 import unittest 1 import unittest
2 2
3 from mercurial import commands 3 from mercurial import commands
4 from mercurial import hg 4 from mercurial import hg
5 from mercurial import ui
6 5
7 import test_util 6 import test_util
8 7
9 class TestFetchTruncatedHistory(test_util.TestBase): 8 class TestFetchTruncatedHistory(test_util.TestBase):
10 def test_truncated_history(self, stupid=False): 9 def test_truncated_history(self, stupid=False):
11 # Test repository does not follow the usual layout 10 # Test repository does not follow the usual layout
12 test_util.load_svndump_fixture(self.repo_path, 'truncatedhistory.svndump') 11 test_util.load_svndump_fixture(self.repo_path, 'truncatedhistory.svndump')
13 svn_url = test_util.fileurl(self.repo_path + '/project2') 12 svn_url = test_util.fileurl(self.repo_path + '/project2')
14 _ui = ui.ui() 13 commands.clone(self.ui(stupid), svn_url, self.wc_path, noupdate=True)
15 _ui.setconfig('hgsubversion', 'stupid', str(stupid)) 14 repo = hg.repository(self.ui(stupid), self.wc_path)
16 commands.clone(_ui, svn_url, self.wc_path, noupdate=True)
17 repo = hg.repository(_ui, self.wc_path)
18 15
19 # We are converting /project2/trunk coming from: 16 # We are converting /project2/trunk coming from:
20 # 17 #
21 # Changed paths: 18 # Changed paths:
22 # D /project1 19 # D /project1