Mercurial > hgsubversion
diff tests/test_push_renames.py @ 512:c421e6bf0d95
tests: test paths with spaces
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 24 Dec 2009 13:38:06 -0600 |
parents | 067914ecb4eb |
children | d2ef7220a079 |
line wrap: on
line diff
--- a/tests/test_push_renames.py +++ b/tests/test_push_renames.py @@ -49,6 +49,27 @@ class TestPushRenames(test_util.TestBase # self._debug_print_copies(tip) self.assertchanges(changes, tip) + def test_push_rename_with_space(self): + changes = [ + ('random/dir with space/file with space', + 'random/dir with space/file with space', + 'file contents'), + ] + self.commitchanges(changes) + + changes = [ + ('random/dir with space/file with space', + 'random2/dir with space/file with space', + None), + ('random/dir with space/file with space', + None, None), + ] + self.commitchanges(changes) + self.pushrevisions() + self.assertEqual(self.repo['tip'].manifest().keys(), + ['a', 'c', 'b', 'e', 'd', + 'random2/dir with space/file with space']) + def test_push_rename_tree(self): repo = self.repo