Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 41:496c0354019c
Improved handling of copies from outside of trunk.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 26 Oct 2008 22:39:17 -0500 |
parents | 9952f03ddfbe |
children | af7ac6c03452 |
comparison
equal
deleted
inserted
replaced
40:9952f03ddfbe | 41:496c0354019c |
---|---|
95 repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump') | 95 repo = self._load_fixture_and_fetch('file_mixed_with_branches.svndump') |
96 self.assertEqual(node.hex(repo['tip'].node()), | 96 self.assertEqual(node.hex(repo['tip'].node()), |
97 'a47d0ce778660a91c31bf2c21c448e9ee296ac90') | 97 'a47d0ce778660a91c31bf2c21c448e9ee296ac90') |
98 assert 'README' not in repo | 98 assert 'README' not in repo |
99 | 99 |
100 def test_files_copied_from_outside_btt(self): | |
101 repo = self._load_fixture_and_fetch( | |
102 'test_files_copied_from_outside_btt.svndump') | |
103 self.assertEqual(node.hex(repo['tip'].node()), | |
104 'c4e669a763a70f751c71d4534a34a65f398d71d4') | |
105 self.assertEqual(len(repo.changelog), 2) | |
100 | 106 |
101 class TestStupidPull(unittest.TestCase): | 107 class TestStupidPull(unittest.TestCase): |
102 def setUp(self): | 108 def setUp(self): |
103 self.oldwd = os.getcwd() | 109 self.oldwd = os.getcwd() |
104 self.tmpdir = tempfile.mkdtemp('svnwrap_test') | 110 self.tmpdir = tempfile.mkdtemp('svnwrap_test') |