# HG changeset patch # User Anton Shestakov # Date 1720784581 -14400 # Node ID 47c7b5ccabd0fe9b408d9b3468a6f955c7f476aa # Parent ed00ed185249cb443ded3dced8e5d44af4507788 pytype: ignore an error about missing scmutil.filteredhash() on hg 6.8 diff -r ed00ed185249 -r 47c7b5ccabd0 hgext3rd/evolve/headchecking.py --- a/hgext3rd/evolve/headchecking.py Fri Jun 28 19:05:24 2024 +0400 +++ b/hgext3rd/evolve/headchecking.py Fri Jul 12 15:43:01 2024 +0400 @@ -27,7 +27,7 @@ extensions.wrapfunction(discovery, '_postprocessobsolete', _postprocessobsolete) if util.safehasattr(scmutil, 'filteredhash'): # hg <= 6.7 (a03fa40afd01) - code = scmutil.filteredhash.__code__ + code = scmutil.filteredhash.__code__ # pytype: disable=module-attr if 'needobsolete' not in code.co_varnames[:code.co_argcount]: # hg <= 6.0 (053a5bf508da) extensions.wrapfunction(scmutil, 'enforcesinglehead', enforcesinglehead) diff -r ed00ed185249 -r 47c7b5ccabd0 hgext3rd/topic/discovery.py --- a/hgext3rd/topic/discovery.py Fri Jun 28 19:05:24 2024 +0400 +++ b/hgext3rd/topic/discovery.py Fri Jul 12 15:43:01 2024 +0400 @@ -242,7 +242,7 @@ filterfn = lambda repo, heads: heads if util.safehasattr(scmutil, 'filteredhash'): # hg <= 6.7 (a03fa40afd01) - code = scmutil.filteredhash.__code__ + code = scmutil.filteredhash.__code__ # pytype: disable=module-attr if 'needobsolete' not in code.co_varnames[:code.co_argcount]: # hg <= 6.0 (053a5bf508da) filterfn = _filter_obsolete_heads