Submitter | phabricator |
---|---|
Date | Dec. 19, 2019, 6:10 p.m. |
Message ID | <c37598bee960e2f11b32219a7d6d6a75@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/43999/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -545,12 +545,10 @@ if cache is not None: nodetree = cache.get(b'disambiguationnodetree') if not nodetree: - try: + if util.safehasattr(parsers, 'nodetree'): + # The CExt is the only implementation to provide a nodetree + # class so far. nodetree = parsers.nodetree(cl.index, len(revs)) - except AttributeError: - # no native nodetree - pass - else: for r in revs: nodetree.insert(r) if cache is not None: