Patchwork phase: add a pointer to 'hg help phases' in the 'phase' help

login
register
mail settings
Submitter Pierre-Yves David
Date June 19, 2015, 6:20 p.m.
Message ID <e372396adcf1cbab1165.1434738004@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9714/
State Accepted
Headers show

Comments

Pierre-Yves David - June 19, 2015, 6:20 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1434737235 25200
#      Fri Jun 19 11:07:15 2015 -0700
# Node ID e372396adcf1cbab1165fcb64c90c4cb8a812a8e
# Parent  85294076adceb3263056e366023cba2e88ace6ca
phase: add a pointer to 'hg help phases' in the 'phase' help

The command and the general topic have very similar name. The topic is pointing
to the command, but the command was not pointing to the topic.
Matt Mackall - June 19, 2015, 9:57 p.m.
On Fri, 2015-06-19 at 11:20 -0700, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@fb.com>
> # Date 1434737235 25200
> #      Fri Jun 19 11:07:15 2015 -0700
> # Node ID e372396adcf1cbab1165fcb64c90c4cb8a812a8e
> # Parent  85294076adceb3263056e366023cba2e88ace6ca
> phase: add a pointer to 'hg help phases' in the 'phase' help

Queued for default, thanks.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4983,10 +4983,12 @@  def phase(ui, repo, *revs, **opts):
 
         public < draft < secret
 
     Returns 0 on success, 1 if no phases were changed or some could not
     be changed.
+
+    (For more information about the phases concept, see :hg:`help phases`.)
     """
     # search for a unique phase argument
     targetphase = None
     for idx, name in enumerate(phases.phasenames):
         if opts[name]: