narrow: assume addflagprocessor will always exist on revlog module
authorAugie Fackler <augie@google.com>
Mon, 29 Jan 2018 18:16:23 -0500
changeset 36083 9772ef9f6c04
parent 36082 adc8e1fe2f46
child 36084 dc01484606da
narrow: assume addflagprocessor will always exist on revlog module Differential Revision: https://phab.mercurial-scm.org/D1978
hgext/narrow/narrowrevlog.py
--- a/hgext/narrow/narrowrevlog.py	Mon Jan 29 18:13:56 2018 -0500
+++ b/hgext/narrow/narrowrevlog.py	Mon Jan 29 18:16:23 2018 -0500
@@ -27,9 +27,8 @@
 def rawtransform(self, text):
     return False
 
-if util.safehasattr(revlog, 'addflagprocessor'):
-    revlog.addflagprocessor(ELLIPSIS_NODE_FLAG,
-                            (readtransform, writetransform, rawtransform))
+revlog.addflagprocessor(ELLIPSIS_NODE_FLAG,
+                        (readtransform, writetransform, rawtransform))
 
 def setup():
     # We just wanted to add the flag processor, which is done at module