Patchwork D8373: manifest: add test for long hashes

login
register
mail settings
Submitter phabricator
Date April 14, 2020, 7:19 p.m.
Message ID <2acfeef2f232acd27715ace8807d5985@localhost.localdomain>
Download mbox | patch
Permalink /patch/46115/
State Not Applicable
Headers show

Comments

phabricator - April 14, 2020, 7:19 p.m.
Closed by commit rHG677e8fdd2c8b: manifest: add test for long hashes (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8373?vs=20976&id=21086

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8373/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8373

AFFECTED FILES
  tests/test-manifest.py

CHANGE DETAILS




To: durin42, #hg-reviewers, Alphare, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/test-manifest.py b/tests/test-manifest.py
--- a/tests/test-manifest.py
+++ b/tests/test-manifest.py
@@ -88,6 +88,10 @@ 
         with self.assertRaises(KeyError):
             m[b'wat']
 
+    def testManifestLongHashes(self):
+        m = self.parsemanifest(b'a\0' + b'f' * 64 + b'\n')
+        self.assertEqual(binascii.unhexlify(b'f' * 64), m[b'a'])
+
     def testSetItem(self):
         want = BIN_HASH_1