mercurial/commands.py
changeset 40725 9b8d1ad851f8
parent 40715 1a6bb5a85e30
child 40753 7c25d2233d53
--- a/mercurial/commands.py	Mon Nov 19 17:19:54 2018 +0000
+++ b/mercurial/commands.py	Sat Oct 27 21:13:23 2018 +0800
@@ -4497,6 +4497,7 @@
      _('a specific branch you would like to push'), _('BRANCH')),
     ('', 'new-branch', False, _('allow pushing a new branch')),
     ('', 'pushvars', [], _('variables that can be sent to server (ADVANCED)')),
+    ('', 'publish', False, _('push the changeset as public (EXPERIMENTAL)')),
     ] + remoteopts,
     _('[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]'),
     helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT,
@@ -4614,6 +4615,7 @@
     pushop = exchange.push(repo, other, opts.get('force'), revs=revs,
                            newbranch=opts.get('new_branch'),
                            bookmarks=opts.get('bookmark', ()),
+                           publish=opts.get('publish'),
                            opargs=opargs)
 
     result = not pushop.cgresult