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

Denis Laxalde denis at laxalde.org
Wed Dec 6 03:23:35 EST 2017


Kyle Lippincott via Mercurial-devel a écrit :
> # HG changeset patch
> # User Kyle Lippincott <spectral at 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 at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
> 



More information about the Mercurial-devel mailing list