hg: let extensions call the func without populating opts keys
authorSushil khanchi <sushilkhanchi97@gmail.com>
Wed, 06 Oct 2021 13:32:07 +0530
changeset 48173 1d70fb83ff4a
parent 48172 08c8cd2527bc
child 48174 9ecf802b06e0
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
mercurial/hg.py
--- 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: