mercurial/revlog.py
changeset 39879 d269ddbf54f0
parent 39878 3e896b51aa5d
child 39881 d63153611ed5
--- a/mercurial/revlog.py	Mon Sep 24 14:31:31 2018 -0700
+++ b/mercurial/revlog.py	Mon Sep 24 14:33:45 2018 -0700
@@ -126,10 +126,6 @@
     ellipsisrawprocessor,
 )
 
-def _censoredtext(text):
-    m, offs = storageutil.parsemeta(text)
-    return m and "censored" in m
-
 def addflagprocessor(flag, processor):
     """Register a flag processor on a revision data flag.
 
@@ -1706,7 +1702,7 @@
                 raise error.RevlogError(_("integrity check failed on %s:%s")
                     % (self.indexfile, pycompat.bytestr(revornode)))
         except error.RevlogError:
-            if self._censorable and _censoredtext(text):
+            if self._censorable and storageutil.iscensoredtext(text):
                 raise error.CensoredNodeError(self.indexfile, node, text)
             raise