Mercurial > hg
diff tests/simplestorerepo.py @ 39878:3e896b51aa5d
storageutil: move metadata parsing and packing from revlog (API)
Parsing and writing of revision text metadata is likely identical
across storage backends. Let's move the code out of revlog so we
don't need to import the revlog module in order to use it.
Differential Revision: https://phab.mercurial-scm.org/D4754
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 24 Sep 2018 14:31:31 -0700 |
parents | f8eb71f9e3bd |
children | 2f80eaf38ed4 |
line wrap: on
line diff
--- a/tests/simplestorerepo.py Mon Sep 24 14:23:54 2018 -0700 +++ b/tests/simplestorerepo.py Mon Sep 24 14:31:31 2018 -0700 @@ -326,7 +326,7 @@ return False fulltext = self.revision(node) - m = revlog.parsemeta(fulltext)[0] + m = storageutil.parsemeta(fulltext)[0] if m and 'copy' in m: return m['copy'], bin(m['copyrev']) @@ -411,7 +411,7 @@ def add(self, text, meta, transaction, linkrev, p1, p2): if meta or text.startswith(b'\1\n'): - text = revlog.packmeta(meta, text) + text = storageutil.packmeta(meta, text) return self.addrevision(text, transaction, linkrev, p1, p2)