comparison mercurial/commands.py @ 39898:f6874567a93b

bundle: consistently put revnums in "base" collection The "base" collection contains revnums, except that it can also contain the "null" symbol. That's a little weird. Let's be consistent. Differential Revision: https://phab.mercurial-scm.org/D4779
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 26 Sep 2018 22:17:26 -0700
parents ddca38941b2b
children f07ab9ddc0c0
comparison
equal deleted inserted replaced
39897:b55747ca518f 39898:f6874567a93b
1222 if dest: 1222 if dest:
1223 raise error.Abort(_("--all is incompatible with specifying " 1223 raise error.Abort(_("--all is incompatible with specifying "
1224 "a destination")) 1224 "a destination"))
1225 if opts.get('base'): 1225 if opts.get('base'):
1226 ui.warn(_("ignoring --base because --all was specified\n")) 1226 ui.warn(_("ignoring --base because --all was specified\n"))
1227 base = ['null'] 1227 base = [nullrev]
1228 else: 1228 else:
1229 base = scmutil.revrange(repo, opts.get('base')) 1229 base = scmutil.revrange(repo, opts.get('base'))
1230 if cgversion not in changegroup.supportedoutgoingversions(repo): 1230 if cgversion not in changegroup.supportedoutgoingversions(repo):
1231 raise error.Abort(_("repository does not support bundle version %s") % 1231 raise error.Abort(_("repository does not support bundle version %s") %
1232 cgversion) 1232 cgversion)