Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/tests/test-manifest.py Fri Mar 27 22:26:41 2015 -0700 +++ b/tests/test-manifest.py Tue Mar 31 14:01:33 2015 -0700 @@ -146,6 +146,12 @@ self.assertIn('bar/qux/foz.py', m) self.assertIn(256 * 'x' + '/x', m) self.assertIn(256 * 'x' + '/y', m) + self.assertEqual(A_STEM_COMPRESSED_MANIFEST, m.text(usemanifestv2=True)) + + def testTextV2(self): + m1 = parsemanifest(A_SHORT_MANIFEST) + v2text = m1.text(usemanifestv2=True) + self.assertEqual(A_SHORT_MANIFEST_V2, v2text) def testSetItem(self): want = BIN_HASH_1