[PATCH 4 of 7] tests: directly 'getchangegroup'

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri May 5 02:26:54 EDT 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1493894510 -7200
#      Thu May 04 12:41:50 2017 +0200
# Node ID 1e8427b7d0b9ce66c5ba34c2cdb64821ff909267
# Parent  0f0cdb08e98f2128829cb6f2f8e7a3743e6fb18e
# 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 1e8427b7d0b9
tests: directly 'getchangegroup'

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

diff --git a/tests/test-bundle2-format.t b/tests/test-bundle2-format.t
--- a/tests/test-bundle2-format.t
+++ b/tests/test-bundle2-format.t
@@ -113,7 +113,7 @@ Create an extension to test bundle2 API
   >             headmissing = [c.node() for c in repo.set('heads(%ld)', revs)]
   >             headcommon  = [c.node() for c in repo.set('parents(%ld) - %ld', revs, revs)]
   >             outgoing = discovery.outgoing(repo, headcommon, headmissing)
-  >             cg = changegroup.getlocalchangegroup(repo, 'test:bundle2', outgoing)
+  >             cg = changegroup.getchangegroup(repo, 'test:bundle2', outgoing)
   >             bundler.newpart('changegroup', data=cg.getchunks(),
   >                             mandatory=False)
   > 


More information about the Mercurial-devel mailing list