narrow: assume addflagprocessor will always exist on revlog module
Differential Revision: https://phab.mercurial-scm.org/D1978
--- 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