Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 32165:30b9a7b96448
commands: directly 'getchangegroup'
It is identical to 'getlocalchangegroup' with a shorter name.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 04 May 2017 12:41:17 +0200 |
parents | 282b288aa20c |
children | aeb060dd7ac9 |
comparison
equal
deleted
inserted
replaced
32164:29e286fa4db0 | 32165:30b9a7b96448 |
---|---|
1368 heads = revs and map(repo.lookup, revs) or revs | 1368 heads = revs and map(repo.lookup, revs) or revs |
1369 outgoing = discovery.findcommonoutgoing(repo, other, | 1369 outgoing = discovery.findcommonoutgoing(repo, other, |
1370 onlyheads=heads, | 1370 onlyheads=heads, |
1371 force=opts.get('force'), | 1371 force=opts.get('force'), |
1372 portable=True) | 1372 portable=True) |
1373 cg = changegroup.getlocalchangegroup(repo, 'bundle', outgoing, | 1373 cg = changegroup.getchangegroup(repo, 'bundle', outgoing, |
1374 version=cgversion) | 1374 version=cgversion) |
1375 if not cg: | 1375 if not cg: |
1376 scmutil.nochangesfound(ui, repo, outgoing and outgoing.excluded) | 1376 scmutil.nochangesfound(ui, repo, outgoing and outgoing.excluded) |
1377 return 1 | 1377 return 1 |
1378 | 1378 |