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
--- a/mercurial/hg.py Tue Oct 05 16:09:20 2021 +0100
+++ b/mercurial/hg.py Wed Oct 06 13:32:07 2021 +0530
@@ -1285,7 +1285,7 @@
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: