Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 40:9952f03ddfbe
Add a test that proves files in the branches directory don't cause breakage.
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Sun, 26 Oct 2008 22:12:46 -0500 |
| parents | 99f8e4b535e9 |
| children | 496c0354019c |
comparison
equal
deleted
inserted
replaced
| 39:b3c7b844b782 | 40:9952f03ddfbe |
|---|---|
| 89 '9dfb0a19494f45c36e22f3c6d1b21d80638a7f6e') | 89 '9dfb0a19494f45c36e22f3c6d1b21d80638a7f6e') |
| 90 self.assertEqual(len(repo['tip'].parents()), 1) | 90 self.assertEqual(len(repo['tip'].parents()), 1) |
| 91 self.assertEqual(repo['tip'], repo['default']) | 91 self.assertEqual(repo['tip'], repo['default']) |
| 92 self.assertEqual(len(repo.heads()), 2) | 92 self.assertEqual(len(repo.heads()), 2) |
| 93 | 93 |
| 94 def test_file_mixed_with_branches(self): | |
| 95 repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump') | |
| 96 self.assertEqual(node.hex(repo['tip'].node()), | |
| 97 'a47d0ce778660a91c31bf2c21c448e9ee296ac90') | |
| 98 assert 'README' not in repo | |
| 99 | |
| 94 | 100 |
| 95 class TestStupidPull(unittest.TestCase): | 101 class TestStupidPull(unittest.TestCase): |
| 96 def setUp(self): | 102 def setUp(self): |
| 97 self.oldwd = os.getcwd() | 103 self.oldwd = os.getcwd() |
| 98 self.tmpdir = tempfile.mkdtemp('svnwrap_test') | 104 self.tmpdir = tempfile.mkdtemp('svnwrap_test') |
