Mercurial > hg
comparison tests/test-manifest.py @ 24573:701d3554de0e
manifestv2: add support for writing new manifest format
If .hg/requires has 'manifestv2', the manifest will be written using
the new format.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 31 Mar 2015 14:01:33 -0700 |
parents | b83679eb5f86 |
children | 9d6db63ccf00 |
comparison
equal
deleted
inserted
replaced
24572:b83679eb5f86 | 24573:701d3554de0e |
---|---|
144 self.assertIn('bar/baz/qux.py', m) | 144 self.assertIn('bar/baz/qux.py', m) |
145 self.assertIn('bar/qux/foo.py', m) | 145 self.assertIn('bar/qux/foo.py', m) |
146 self.assertIn('bar/qux/foz.py', m) | 146 self.assertIn('bar/qux/foz.py', m) |
147 self.assertIn(256 * 'x' + '/x', m) | 147 self.assertIn(256 * 'x' + '/x', m) |
148 self.assertIn(256 * 'x' + '/y', m) | 148 self.assertIn(256 * 'x' + '/y', m) |
149 self.assertEqual(A_STEM_COMPRESSED_MANIFEST, m.text(usemanifestv2=True)) | |
150 | |
151 def testTextV2(self): | |
152 m1 = parsemanifest(A_SHORT_MANIFEST) | |
153 v2text = m1.text(usemanifestv2=True) | |
154 self.assertEqual(A_SHORT_MANIFEST_V2, v2text) | |
149 | 155 |
150 def testSetItem(self): | 156 def testSetItem(self): |
151 want = BIN_HASH_1 | 157 want = BIN_HASH_1 |
152 | 158 |
153 m = parsemanifest(EMTPY_MANIFEST) | 159 m = parsemanifest(EMTPY_MANIFEST) |