Patchwork D1978: narrow: assume addflagprocessor will always exist on revlog module

login
register
mail settings
Submitter phabricator
Date Feb. 12, 2018, 11:17 p.m.
Message ID <f1b099c28e74944bc498134b2ea403ba@localhost.localdomain>
Download mbox | patch
Permalink /patch/27725/
State Not Applicable
Headers show

Comments

phabricator - Feb. 12, 2018, 11:17 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9772ef9f6c04: narrow: assume addflagprocessor will always exist on revlog module (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1978?vs=5099&id=5545

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

AFFECTED FILES
  hgext/narrow/narrowrevlog.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/narrow/narrowrevlog.py b/hgext/narrow/narrowrevlog.py
--- a/hgext/narrow/narrowrevlog.py
+++ b/hgext/narrow/narrowrevlog.py
@@ -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