Mercurial > evolve
diff hgext3rd/topic/__init__.py @ 3159:90515d0bfb08
push: add a --publish flag
The new flag turns all element in the push to public changeset. This will help
experiment with diverse publishing workflow.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Nov 2017 16:23:13 +0100 |
parents | 678a9802c56b |
children | c56c028f3802 |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Wed Nov 01 16:26:33 2017 +0100 +++ b/hgext3rd/topic/__init__.py Wed Nov 01 16:23:13 2017 +0100 @@ -93,6 +93,10 @@ publish = no [experimental] topic.publish-bare-branch = yes + +In addition, the topic extension adds a ``--publish`` flag on :hg:`push`. When +used, the pushed revisions are published if the push succeeds. It also applies +to common revisions selected by the push. """ from __future__ import absolute_import @@ -282,6 +286,8 @@ extensions.afterloaded('rebase', _fixrebase) + flow.installpushflag(ui) + entry = extensions.wrapcommand(commands.table, 'commit', commitwrap) entry[1].append(('t', 'topic', '', _("use specified topic"), _('TOPIC')))