[PATCH 7 of 9 phases] phases: add a phases command to display and manipulate phases

Matt Mackall mpm at selenic.com
Mon Jan 9 20:59:28 CST 2012


On Sun, 2012-01-08 at 16:31 +0100, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
> # Date 1325950301 -3600
> # Node ID 3ac4298bdf2b3116d48e2aa3b57267fc4d0a2aef
> # Parent  0c848dca7bea331a24180eeda7e2d6f3905e81a2
> phases: add a phases command to display and manipulate phases
> 
> diff --git a/mercurial/commands.py b/mercurial/commands.py
> --- a/mercurial/commands.py
> +++ b/mercurial/commands.py
> @@ -18,6 +18,7 @@
>  import minirst, revset, fileset
>  import dagparser, context, simplemerge
>  import random, setdiscovery, treediscovery, dagutil
> +import phases as phasesmod
>  
>  table = {}
>  
> @@ -4210,6 +4211,61 @@
>                  ui.write("%s\n" % name)
>              else:
>                  ui.write("%s = %s\n" % (name, util.hidepassword(path)))
> + at command('^phase',
> +    [('p', 'public', False, _('Set changeset to public')),
> +     ('d', 'draft', False, _('Set changeset to draft')),
> +     ('s', 'secret', False, _('Set changeset to secret')),
> +     ('f', 'force', False, _('allow to move boundary backward')),
> +     ('r', 'rev', [], _('target revision')),
> +    ],
> +    _('[-p|-d|-s] [-f] [-C] [-r] REV'))
> +def phase(ui, repo, *revs, **opts):
> +    """set or show the current phase name
> +
> +    See :hg:`help phases` for more information about phases if you are
> +    not familliar with this concept.

You seem to have not included mercurial/help/phases.txt in your patch.
Please drop this line or resend when the patch is complete.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list