comparison tests/test_single_dir_clone.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 6e1dbf6cbc92
children d55c9d0ba350
comparison
equal deleted inserted replaced
1320:2061fd988f3f 1321:a36e87ae2380
19 repo = self._load_fixture_and_fetch('branch_from_tag.svndump', 19 repo = self._load_fixture_and_fetch('branch_from_tag.svndump',
20 layout='single', 20 layout='single',
21 subdir='') 21 subdir='')
22 self.assertEqual(compathacks.branchset(repo), 22 self.assertEqual(compathacks.branchset(repo),
23 set(['default'])) 23 set(['default']))
24 self.assertEqual(repo['tip'].manifest().keys(), 24 self.assertEqual(sorted(repo['tip'].manifest().keys()),
25 ['trunk/beta', 25 ['branches/branch_from_tag/alpha',
26 'branches/branch_from_tag/beta',
26 'tags/copied_tag/alpha', 27 'tags/copied_tag/alpha',
27 'trunk/alpha',
28 'tags/copied_tag/beta', 28 'tags/copied_tag/beta',
29 'branches/branch_from_tag/alpha',
30 'tags/tag_r3/alpha', 29 'tags/tag_r3/alpha',
31 'tags/tag_r3/beta', 30 'tags/tag_r3/beta',
32 'branches/branch_from_tag/beta']) 31 'trunk/alpha',
32 'trunk/beta'])
33 33
34 def test_auto_detect_single(self): 34 def test_auto_detect_single(self):
35 repo = self._load_fixture_and_fetch('branch_from_tag.svndump', 35 repo = self._load_fixture_and_fetch('branch_from_tag.svndump',
36 layout='auto') 36 layout='auto')
37 self.assertEqual(compathacks.branchset(repo), 37 self.assertEqual(compathacks.branchset(repo),