Mercurial > hgsubversion
comparison tests/test_push_renames.py @ 1321:a36e87ae2380
tests: always compare manifest keys in sorted order
Not comparing sorted lists was probably always a mistake, but it became an
actual failure when upstream Mercurial changed to using lazymanifest, which
always returns keys in sorted order.
| author | Siddharth Agarwal <sid0@fb.com> |
|---|---|
| date | Fri, 27 Mar 2015 16:44:05 -0700 |
| parents | 9a740cbb6895 |
| children |
comparison
equal
deleted
inserted
replaced
| 1320:2061fd988f3f | 1321:a36e87ae2380 |
|---|---|
| 64 ('random/dir with space/file with space', | 64 ('random/dir with space/file with space', |
| 65 None, None), | 65 None, None), |
| 66 ] | 66 ] |
| 67 self.commitchanges(changes) | 67 self.commitchanges(changes) |
| 68 self.pushrevisions() | 68 self.pushrevisions() |
| 69 self.assertEqual(self.repo['tip'].manifest().keys(), | 69 self.assertEqual(sorted(self.repo['tip'].manifest().keys()), |
| 70 ['a', 'c', 'b', 'e', 'd', | 70 ['a', 'b', 'c', 'd', 'e', |
| 71 'random2/dir with space/file with space']) | 71 'random2/dir with space/file with space']) |
| 72 | 72 |
| 73 def test_push_rename_tree(self): | 73 def test_push_rename_tree(self): |
| 74 repo = self.repo | 74 repo = self.repo |
| 75 | 75 |
