Patchwork [2,of,2,evolve-ext,V2] help: fix output for `hg help -e evolve` wrt 'touch' command

login
register
mail settings
Submitter via Mercurial-devel
Date Dec. 6, 2017, 12:29 a.m.
Message ID <d584dfa21ea0bfa8a0fd.1512520159@dragonair.svl.corp.google.com>
Download mbox | patch
Permalink /patch/25961/
State Accepted
Headers show

Comments

via Mercurial-devel - Dec. 6, 2017, 12:29 a.m.
# HG changeset patch
# User Kyle Lippincott <spectral@google.com>
# Date 1512519068 28800
#      Tue Dec 05 16:11:08 2017 -0800
# Node ID d584dfa21ea0bfa8a0fde0800978e8e682fa7544
# Parent  21abe1e218b87428e4249e67990c345c63d521f6
help: fix output for `hg help -e evolve` wrt 'touch' command

Currently, when running `hg help -e evolve`, the output looks like this on my
screen:

 touch         create successors that are identical to their predecessors
               except

With this change, it looks like this:

 touch         create successors that are identical to their predecessors
               except for the changeset ID
Denis Laxalde - Dec. 6, 2017, 8:23 a.m.
Kyle Lippincott via Mercurial-devel a écrit :
> # HG changeset patch
> # User Kyle Lippincott <spectral@google.com>
> # Date 1512519068 28800
> #      Tue Dec 05 16:11:08 2017 -0800
> # Node ID d584dfa21ea0bfa8a0fde0800978e8e682fa7544
> # Parent  21abe1e218b87428e4249e67990c345c63d521f6
> help: fix output for `hg help -e evolve` wrt 'touch' command
> 
> Currently, when running `hg help -e evolve`, the output looks like this on my
> screen:
> 
>  touch         create successors that are identical to their predecessors
>                except
> 
> With this change, it looks like this:
> 
>  touch         create successors that are identical to their predecessors
>                except for the changeset ID
> 
> diff --git a/hgext3rd/evolve/cmdrewrite.py b/hgext3rd/evolve/cmdrewrite.py
> --- a/hgext3rd/evolve/cmdrewrite.py
> +++ b/hgext3rd/evolve/cmdrewrite.py
> @@ -1048,8 +1048,9 @@
>      # allow to choose the seed ?
>      _('[-r] revs'))
>  def touch(ui, repo, *revs, **opts):
> -    """create successors that are identical to their predecessors except
> -    for the changeset ID
> +    # Do not split this next line to fit into 80 cols, it is displayed when
> +    # running `hg` with no arguments!
> +    """create successors that are identical to their predecessors except for the changeset ID

Maybe rephrase the sentence to make it shorter? Something like:

  create successors identical to their predecessors but the changeset ID

>      This is used to "resurrect" changesets
>      """
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>

Patch

diff --git a/hgext3rd/evolve/cmdrewrite.py b/hgext3rd/evolve/cmdrewrite.py
--- a/hgext3rd/evolve/cmdrewrite.py
+++ b/hgext3rd/evolve/cmdrewrite.py
@@ -1048,8 +1048,9 @@ 
     # allow to choose the seed ?
     _('[-r] revs'))
 def touch(ui, repo, *revs, **opts):
-    """create successors that are identical to their predecessors except
-    for the changeset ID
+    # Do not split this next line to fit into 80 cols, it is displayed when
+    # running `hg` with no arguments!
+    """create successors that are identical to their predecessors except for the changeset ID
 
     This is used to "resurrect" changesets
     """