Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 263:d978192f0d63
Clean up TODOs that are no longer relevant.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 13 Apr 2009 21:19:13 -0500 |
parents | ffccf0080e54 |
children | bb00f7ca5b8c |
comparison
equal
deleted
inserted
replaced
262:3b3627611468 | 263:d978192f0d63 |
---|---|
22 'svn:df2126f7-00ab-4d49-b42c-7e981dde0bcf/trunk@2') | 22 'svn:df2126f7-00ab-4d49-b42c-7e981dde0bcf/trunk@2') |
23 self.assertEqual(repo['tip'], repo[0]) | 23 self.assertEqual(repo['tip'], repo[0]) |
24 | 24 |
25 def test_fresh_fetch_two_revs(self): | 25 def test_fresh_fetch_two_revs(self): |
26 repo = self._load_fixture_and_fetch('two_revs.svndump') | 26 repo = self._load_fixture_and_fetch('two_revs.svndump') |
27 # TODO there must be a better way than repo[0] for this check | |
28 self.assertEqual(node.hex(repo[0].node()), | 27 self.assertEqual(node.hex(repo[0].node()), |
29 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') | 28 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') |
30 self.assertEqual(node.hex(repo['tip'].node()), | 29 self.assertEqual(node.hex(repo['tip'].node()), |
31 'c95251e0dd04697deee99b79cc407d7db76e6a5f') | 30 'c95251e0dd04697deee99b79cc407d7db76e6a5f') |
32 self.assertEqual(repo['tip'], repo[1]) | 31 self.assertEqual(repo['tip'], repo[1]) |
33 | 32 |
34 def test_branches(self): | 33 def test_branches(self): |
35 repo = self._load_fixture_and_fetch('simple_branch.svndump') | 34 repo = self._load_fixture_and_fetch('simple_branch.svndump') |
36 # TODO there must be a better way than repo[0] for this check | |
37 self.assertEqual(node.hex(repo[0].node()), | 35 self.assertEqual(node.hex(repo[0].node()), |
38 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') | 36 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') |
39 self.assertEqual(node.hex(repo['tip'].node()), | 37 self.assertEqual(node.hex(repo['tip'].node()), |
40 'f1ff5b860f5dbb9a59ad0921a79da77f10f25109') | 38 'f1ff5b860f5dbb9a59ad0921a79da77f10f25109') |
41 self.assertEqual(len(repo['tip'].parents()), 1) | 39 self.assertEqual(len(repo['tip'].parents()), 1) |
46 'svn:df2126f7-00ab-4d49-b42c-7e981dde0bcf/trunk@3') | 44 'svn:df2126f7-00ab-4d49-b42c-7e981dde0bcf/trunk@3') |
47 self.assertEqual(len(repo.heads()), 1) | 45 self.assertEqual(len(repo.heads()), 1) |
48 | 46 |
49 def test_two_branches_with_heads(self): | 47 def test_two_branches_with_heads(self): |
50 repo = self._load_fixture_and_fetch('two_heads.svndump') | 48 repo = self._load_fixture_and_fetch('two_heads.svndump') |
51 # TODO there must be a better way than repo[0] for this check | |
52 self.assertEqual(node.hex(repo[0].node()), | 49 self.assertEqual(node.hex(repo[0].node()), |
53 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') | 50 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') |
54 self.assertEqual(node.hex(repo['tip'].node()), | 51 self.assertEqual(node.hex(repo['tip'].node()), |
55 '1083037b18d85cd84fa211c5adbaeff0fea2cd9f') | 52 '1083037b18d85cd84fa211c5adbaeff0fea2cd9f') |
56 self.assertEqual(node.hex(repo['the_branch'].node()), | 53 self.assertEqual(node.hex(repo['the_branch'].node()), |
61 self.assertEqual(repo['tip'], repo['default']) | 58 self.assertEqual(repo['tip'], repo['default']) |
62 self.assertEqual(len(repo.heads()), 2) | 59 self.assertEqual(len(repo.heads()), 2) |
63 | 60 |
64 def test_many_special_cases_replay(self): | 61 def test_many_special_cases_replay(self): |
65 repo = self._load_fixture_and_fetch('many_special_cases.svndump') | 62 repo = self._load_fixture_and_fetch('many_special_cases.svndump') |
66 # TODO there must be a better way than repo[0] for this check | |
67 self._many_special_cases_checks(repo) | 63 self._many_special_cases_checks(repo) |
68 | 64 |
69 | 65 |
70 def test_many_special_cases_diff(self): | 66 def test_many_special_cases_diff(self): |
71 repo = self._load_fixture_and_fetch('many_special_cases.svndump', | 67 repo = self._load_fixture_and_fetch('many_special_cases.svndump', |
72 stupid=True) | 68 stupid=True) |
73 # TODO there must be a better way than repo[0] for this check | |
74 self._many_special_cases_checks(repo) | 69 self._many_special_cases_checks(repo) |
75 | 70 |
76 def _many_special_cases_checks(self, repo): | 71 def _many_special_cases_checks(self, repo): |
77 self.assertEqual(node.hex(repo[0].node()), | 72 self.assertEqual(node.hex(repo[0].node()), |
78 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') | 73 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') |
154 def test_stupid(self): | 149 def test_stupid(self): |
155 repo = test_util.load_fixture_and_fetch('two_heads.svndump', | 150 repo = test_util.load_fixture_and_fetch('two_heads.svndump', |
156 self.repo_path, | 151 self.repo_path, |
157 self.wc_path, | 152 self.wc_path, |
158 True) | 153 True) |
159 # TODO there must be a better way than repo[0] for this check | |
160 self.assertEqual(node.hex(repo[0].node()), | 154 self.assertEqual(node.hex(repo[0].node()), |
161 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') | 155 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') |
162 self.assertEqual(node.hex(repo['tip'].node()), | 156 self.assertEqual(node.hex(repo['tip'].node()), |
163 '1083037b18d85cd84fa211c5adbaeff0fea2cd9f') | 157 '1083037b18d85cd84fa211c5adbaeff0fea2cd9f') |
164 self.assertEqual(node.hex(repo['the_branch'].node()), | 158 self.assertEqual(node.hex(repo['the_branch'].node()), |