Mercurial > evolve
changeset 6626:7580aa2ac660
evolve: remove compat for exchange.buildobsmarkerspart()
The function in question was moved to bundle2 module in e70d6dbde713, which is
Mercurial 4.3. Let's remove this compatibility, it's very much not needed
anymore and pytype was complaining about it.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 31 Dec 2023 17:51:27 -0300 |
parents | e3cf5f68da1c |
children | 5d6d1ce4905b |
files | hgext3rd/evolve/obsexchange.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/obsexchange.py Sun Dec 31 17:42:02 2023 -0300 +++ b/hgext3rd/evolve/obsexchange.py Sun Dec 31 17:51:27 2023 -0300 @@ -15,7 +15,6 @@ node, obsolete, pushkey, - util, wireprototypes, wireprotov1server ) @@ -112,10 +111,7 @@ subset = [c.node() for c in repo.unfiltered().set(b'only(%ln, %ln)', heads, common)] subset += kwargs['evo_missing_nodes'] markers = repo.obsstore.relevantmarkers(subset) - if util.safehasattr(bundle2, 'buildobsmarkerspart'): - bundle2.buildobsmarkerspart(bundler, markers) - else: - exchange.buildobsmarkerspart(bundler, markers) + bundle2.buildobsmarkerspart(bundler, markers) def _obscommon_capabilities(orig, repo, proto): """wrapper to advertise new capability"""