bundle: consistently put revnums in "base" collection
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 26 Sep 2018 22:17:26 -0700
changeset 39893 f6874567a93b
parent 39892 b55747ca518f
child 39894 d739f423bf06
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
mercurial/commands.py
--- a/mercurial/commands.py	Thu Sep 27 22:07:12 2018 -0400
+++ b/mercurial/commands.py	Wed Sep 26 22:17:26 2018 -0700
@@ -1224,7 +1224,7 @@
                                 "a destination"))
         if opts.get('base'):
             ui.warn(_("ignoring --base because --all was specified\n"))
-        base = ['null']
+        base = [nullrev]
     else:
         base = scmutil.revrange(repo, opts.get('base'))
     if cgversion not in changegroup.supportedoutgoingversions(repo):