comparison tests/test_externals.py @ 183:1c46ad3f56aa

test_externals: test branch copy, use absolute externals
author Patrick Mezard <pmezard@gmail.com>
date Wed, 14 Jan 2009 23:17:12 -0600
parents c4115b3918e9
children d3ea6c98a086
comparison
equal deleted inserted replaced
182:47d25d61abfa 183:1c46ad3f56aa
42 def test_externals(self, stupid=False): 42 def test_externals(self, stupid=False):
43 repo = self._load_fixture_and_fetch('externals.svndump', stupid=stupid) 43 repo = self._load_fixture_and_fetch('externals.svndump', stupid=stupid)
44 44
45 ref0 = """\ 45 ref0 = """\
46 [.] 46 [.]
47 ../externals/project1 deps/project1 47 ^/externals/project1 deps/project1
48 """ 48 """
49 self.assertEqual(ref0, repo[0]['.hgsvnexternals'].data()) 49 self.assertEqual(ref0, repo[0]['.hgsvnexternals'].data())
50 ref1 = """\ 50 ref1 = """\
51 [.] 51 [.]
52 ../externals/project1 deps/project1 52 ^/externals/project1 deps/project1
53 ../externals/project2 deps/project2 53 ^/externals/project2 deps/project2
54 """ 54 """
55 self.assertEqual(ref1, repo[1]['.hgsvnexternals'].data()) 55 self.assertEqual(ref1, repo[1]['.hgsvnexternals'].data())
56 56
57 ref2 = """\ 57 ref2 = """\
58 [.] 58 [.]
59 ../externals/project2 deps/project2 59 ^/externals/project2 deps/project2
60 [subdir] 60 [subdir]
61 ../externals/project1 deps/project1 61 ^/externals/project1 deps/project1
62 [subdir2] 62 [subdir2]
63 ../externals/project1 deps/project1 63 ^/externals/project1 deps/project1
64 """ 64 """
65 self.assertEqual(ref2, repo[2]['.hgsvnexternals'].data()) 65 self.assertEqual(ref2, repo[2]['.hgsvnexternals'].data())
66 66
67 ref3 = """\ 67 ref3 = """\
68 [.] 68 [.]
69 ../externals/project2 deps/project2 69 ^/externals/project2 deps/project2
70 [subdir2] 70 [subdir]
71 ../externals/project1 deps/project1 71 ^/externals/project1 deps/project1
72 """ 72 """
73 self.assertEqual(ref3, repo[3]['.hgsvnexternals'].data()) 73 self.assertEqual(ref3, repo[3]['.hgsvnexternals'].data())
74 74
75 ref4 = """\ 75 ref4 = """\
76 [.] 76 [.]
77 ../externals/project2 deps/project2 77 ^/externals/project2 deps/project2
78 [subdir2]
79 ^/externals/project1 deps/project1
78 """ 80 """
79 self.assertEqual(ref4, repo[4]['.hgsvnexternals'].data()) 81 self.assertEqual(ref4, repo[4]['.hgsvnexternals'].data())
82
83 ref5 = """\
84 [.]
85 ^/externals/project2 deps/project2
86 """
87 self.assertEqual(ref5, repo[5]['.hgsvnexternals'].data())
80 88
81 def test_externals_stupid(self): 89 def test_externals_stupid(self):
82 self.test_externals(True) 90 self.test_externals(True)
83 91
84 92