Mercurial > hgsubversion
comparison 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 |
comparison
equal
deleted
inserted
replaced
511:0e2564d4257d | 512:c421e6bf0d95 |
---|---|
46 self.commitchanges(changes) | 46 self.commitchanges(changes) |
47 self.pushrevisions() | 47 self.pushrevisions() |
48 tip = self.repo['tip'] | 48 tip = self.repo['tip'] |
49 # self._debug_print_copies(tip) | 49 # self._debug_print_copies(tip) |
50 self.assertchanges(changes, tip) | 50 self.assertchanges(changes, tip) |
51 | |
52 def test_push_rename_with_space(self): | |
53 changes = [ | |
54 ('random/dir with space/file with space', | |
55 'random/dir with space/file with space', | |
56 'file contents'), | |
57 ] | |
58 self.commitchanges(changes) | |
59 | |
60 changes = [ | |
61 ('random/dir with space/file with space', | |
62 'random2/dir with space/file with space', | |
63 None), | |
64 ('random/dir with space/file with space', | |
65 None, None), | |
66 ] | |
67 self.commitchanges(changes) | |
68 self.pushrevisions() | |
69 self.assertEqual(self.repo['tip'].manifest().keys(), | |
70 ['a', 'c', 'b', 'e', 'd', | |
71 'random2/dir with space/file with space']) | |
51 | 72 |
52 def test_push_rename_tree(self): | 73 def test_push_rename_tree(self): |
53 repo = self.repo | 74 repo = self.repo |
54 | 75 |
55 changes = [ | 76 changes = [ |