comparison tests/test_fetch_truncated.py @ 1106:5cb6c95e0283 stable

Merge default and stable so I can do stable releases again.
author Augie Fackler <raf@durin42.com>
date Tue, 11 Feb 2014 12:48:49 -0500
parents 825fd4c0396c
children
comparison
equal deleted inserted replaced
1020:b5b1fce26f1f 1106:5cb6c95e0283
4 4
5 from mercurial import commands 5 from mercurial import commands
6 from mercurial import hg 6 from mercurial import hg
7 7
8 class TestFetchTruncatedHistory(test_util.TestBase): 8 class TestFetchTruncatedHistory(test_util.TestBase):
9 def test_truncated_history(self, stupid=False): 9 stupid_mode_tests = True
10
11 def test_truncated_history(self):
10 # Test repository does not follow the usual layout 12 # Test repository does not follow the usual layout
11 repo_path = self.load_svndump('truncatedhistory.svndump') 13 repo_path = self.load_svndump('truncatedhistory.svndump')
12 svn_url = test_util.fileurl(repo_path + '/project2') 14 svn_url = test_util.fileurl(repo_path + '/project2')
13 commands.clone(self.ui(stupid), svn_url, self.wc_path, noupdate=True) 15 commands.clone(self.ui(), svn_url, self.wc_path, noupdate=True)
14 repo = hg.repository(self.ui(stupid), self.wc_path) 16 repo = hg.repository(self.ui(), self.wc_path)
15 17
16 # We are converting /project2/trunk coming from: 18 # We are converting /project2/trunk coming from:
17 # 19 #
18 # Changed paths: 20 # Changed paths:
19 # D /project1 21 # D /project1
24 tip = repo['tip'] 26 tip = repo['tip']
25 files = tip.manifest().keys() 27 files = tip.manifest().keys()
26 files.sort() 28 files.sort()
27 self.assertEqual(files, ['a', 'b']) 29 self.assertEqual(files, ['a', 'b'])
28 self.assertEqual(repo['tip']['a'].data(), 'a\n') 30 self.assertEqual(repo['tip']['a'].data(), 'a\n')
29
30 def test_truncated_history_stupid(self):
31 self.test_truncated_history(True)
32
33 def suite():
34 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestFetchTruncatedHistory),
35 ]
36 return unittest.TestSuite(all_tests)