Mercurial > hg-stable
changeset 32258:3f638e626f22
bundle: check lack of revs to bundle before generating the changegroup
We already have the information so we can check it earlier.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 04 May 2017 21:44:36 +0200 |
parents | affd753ddaf1 |
children | 38d2f9e5df40 |
files | mercurial/commands.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat May 06 23:00:57 2017 -0400 +++ b/mercurial/commands.py Thu May 04 21:44:36 2017 +0200 @@ -1368,11 +1368,13 @@ onlyheads=heads, force=opts.get('force'), portable=True) - cg = changegroup.getchangegroup(repo, 'bundle', outgoing, version=cgversion) - if not cg: + + if not outgoing.missing: scmutil.nochangesfound(ui, repo, not base and outgoing.excluded) return 1 + cg = changegroup.getchangegroup(repo, 'bundle', outgoing, version=cgversion) + if cgversion == '01': #bundle1 if bcompression is None: bcompression = 'UN'