diff mercurial/commands.py @ 32150:282b288aa20c

changegroup: delete unused 'bundlecaps' argument (API)
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 02 May 2017 23:47:10 -0700
parents a77e61b45384
children 30b9a7b96448
line wrap: on
line diff
--- a/mercurial/commands.py	Wed May 03 10:33:26 2017 -0700
+++ b/mercurial/commands.py	Tue May 02 23:47:10 2017 -0700
@@ -1346,8 +1346,6 @@
         base = ['null']
     else:
         base = scmutil.revrange(repo, opts.get('base'))
-    # TODO: get desired bundlecaps from command line.
-    bundlecaps = None
     if cgversion not in changegroup.supportedoutgoingversions(repo):
         raise error.Abort(_("repository does not support bundle version %s") %
                           cgversion)
@@ -1360,7 +1358,6 @@
         heads = revs and map(repo.lookup, revs) or None
         outgoing = discovery.outgoing(repo, common, heads)
         cg = changegroup.getchangegroup(repo, 'bundle', outgoing,
-                                        bundlecaps=bundlecaps,
                                         version=cgversion)
         outgoing = None
     else:
@@ -1374,7 +1371,7 @@
                                                 force=opts.get('force'),
                                                 portable=True)
         cg = changegroup.getlocalchangegroup(repo, 'bundle', outgoing,
-                                                bundlecaps, version=cgversion)
+                                             version=cgversion)
     if not cg:
         scmutil.nochangesfound(ui, repo, outgoing and outgoing.excluded)
         return 1