# HG changeset patch # User Sushil khanchi # Date 2021-10-06 08:02:07 # Node ID 1d70fb83ff4aac8463f27812f28b333a396944ca # Parent 08c8cd2527bcfb6e021aec6a5b66285cc72c44d5 hg: let extensions call the func without populating opts keys This change is to help extensions by not forcing them to populate with opts[b'bundle'] and opts[b'force'] when calling hg.incoming(...) Differential Revision: https://phab.mercurial-scm.org/D11619 diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -1285,7 +1285,7 @@ def _incoming( if revs: revs = [other.lookup(rev) for rev in revs] other, chlist, cleanupfn = bundlerepo.getremotechanges( - ui, repo, other, revs, opts[b"bundle"], opts[b"force"] + ui, repo, other, revs, opts.get(b"bundle"), opts.get(b"force") ) if not chlist: