hgext3rd/topic/__init__.py
changeset 3159 90515d0bfb08
parent 3158 678a9802c56b
child 3163 c56c028f3802
--- 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')))