Patchwork D1977: narrow: this code should assume REVIDX_FLAGS_ORDER exists

login
register
mail settings
Submitter phabricator
Date Feb. 12, 2018, 11:17 p.m.
Message ID <0bdefde2ddd7444b7d37d237dc55bbaa@localhost.localdomain>
Download mbox | patch
Permalink /patch/27723/
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 rHGadc8e1fe2f46: narrow: this code should assume REVIDX_FLAGS_ORDER exists (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1977?vs=5098&id=5544

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

AFFECTED FILES
  hgext/narrow/narrowrevlog.py

CHANGE DETAILS




To: durin42, #hg-reviewers, martinvonz, indygreg
Cc: martinvonz, 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
@@ -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