narrow: this code should assume REVIDX_FLAGS_ORDER exists
Differential Revision: https://phab.mercurial-scm.org/D1977
--- a/hgext/narrow/narrowrevlog.py Mon Jan 29 18:12:17 2018 -0500
+++ b/hgext/narrow/narrowrevlog.py Mon Jan 29 18:13:56 2018 -0500
@@ -15,9 +15,8 @@
ELLIPSIS_NODE_FLAG = 1 << 14
revlog.REVIDX_KNOWN_FLAGS |= ELLIPSIS_NODE_FLAG
-if (util.safehasattr(revlog, 'REVIDX_FLAGS_ORDER') and
- ELLIPSIS_NODE_FLAG not in revlog.REVIDX_FLAGS_ORDER):
- revlog.REVIDX_FLAGS_ORDER.append(ELLIPSIS_NODE_FLAG)
+if ELLIPSIS_NODE_FLAG not in revlog.REVIDX_FLAGS_ORDER:
+ revlog.REVIDX_FLAGS_ORDER.append(ELLIPSIS_NODE_FLAG)
def readtransform(self, text):
return text, False