Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 203:907c160c6289
Refactor branch handling to be much more dynamic (and hopefully robust).
This should allow fixing of several outstanding issues with branch handling. Note that this is a *massive* change to one of the oldest parts of hgsubversion, so it might introduce bugs not caught by the testsuite.
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Mon, 02 Mar 2009 23:58:38 -0600 |
| parents | 906d3f302b45 |
| children | b20a6c149021 |
comparison
equal
deleted
inserted
replaced
| 202:125cf3cb7bee | 203:907c160c6289 |
|---|---|
| 80 self.assertEqual(repo['tip'], repo['default']) | 80 self.assertEqual(repo['tip'], repo['default']) |
| 81 self.assertEqual(len(repo.heads()), 2) | 81 self.assertEqual(len(repo.heads()), 2) |
| 82 | 82 |
| 83 def test_file_mixed_with_branches(self): | 83 def test_file_mixed_with_branches(self): |
| 84 repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump') | 84 repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump') |
| 85 self.assertEqual(node.hex(repo['tip'].node()), | 85 self.assertEqual(node.hex(repo['default'].node()), |
| 86 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') | 86 '434ed487136c1b47c1e8f952edb4dc5a8e6328df') |
| 87 assert 'README' not in repo | 87 assert 'README' not in repo |
| 88 self.assertEqual(repo['tip'].branch(), | |
| 89 '../branches') | |
| 90 | |
| 88 | 91 |
| 89 def test_files_copied_from_outside_btt(self): | 92 def test_files_copied_from_outside_btt(self): |
| 90 repo = self._load_fixture_and_fetch( | 93 repo = self._load_fixture_and_fetch( |
| 91 'test_files_copied_from_outside_btt.svndump') | 94 'test_files_copied_from_outside_btt.svndump') |
| 92 self.assertEqual(node.hex(repo['tip'].node()), | 95 self.assertEqual(node.hex(repo['tip'].node()), |
