Patchwork [2,of,7] commands: directly 'getchangegroup'

login
register
mail settings
Submitter Pierre-Yves David
Date May 5, 2017, 6:26 a.m.
Message ID <e2353365f77d400c358f.1493965612@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20452/
State Accepted
Headers show

Comments

Pierre-Yves David - May 5, 2017, 6:26 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1493894477 -7200
#      Thu May 04 12:41:17 2017 +0200
# Node ID e2353365f77d400c358f2bab4677d5c213f9eee4
# Parent  e27efdd66b0671a5a4c6facdbab52f05ad780f1f
# EXP-Topic changegroup.cleanup
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r e2353365f77d
commands: directly 'getchangegroup'

It is identical to 'getlocalchangegroup' with a shorter name.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1370,7 +1370,7 @@  def bundle(ui, repo, fname, dest=None, *
                                                 onlyheads=heads,
                                                 force=opts.get('force'),
                                                 portable=True)
-        cg = changegroup.getlocalchangegroup(repo, 'bundle', outgoing,
+        cg = changegroup.getchangegroup(repo, 'bundle', outgoing,
                                              version=cgversion)
     if not cg:
         scmutil.nochangesfound(ui, repo, outgoing and outgoing.excluded)