RFC: Phase UI (revset, phase command and others)

Alain Leufroy alain.leufroy at logilab.fr
Mon Jan 2 03:46:39 CST 2012


On Thu, 29 Dec 2011, Matt Mackall wrote:


> On Tue, 2011-12-27 at 00:11 +0100, Pierre-Yves David wrote:
> > The user will be informed of phase movement the same way changegroup addition
> > are notified (check last line):
> >
> >    % 22:31 marmoute at yamac ~/src/pylint > hg push
> >    real URL is http://hg.logilab.org/pylint
> >    pushing to http://hg.logilab.org/pylint
> >    searching for changes
> >    adding changesets
> >    adding manifests
> >    adding file changes
> >    added 60 changesets with 173 changes to 314 files
> >    90 changesets changed phases
>
> Bleck. I already think we're too chatty here (especially with progress
> enabled). And I generally don't want users who are not using phases
> (because they're using rebase or mq today) to have to know or care about
> them at all. If an existing user upgrades they shouldn't have to think
> "wait what?? what is a phase? omg this dvcs crap is so complicated!"

hum, however this information is interesting...
Note that for those users the message will be::

  added 60 changesets with 173 changes to 314 file
  60 changesets changed phases

So, to prevent confusion this line may be omitted if all added changesets are
changed to "publish".
And/or the message may be 'published 60 changesets'.

>
> > more verbose output may provide additional information:
> >
> >    90 changesets changed phases
> >    73 changesets moved to public phase
> >    17 changesets moved to draft phase
>
> I think having a one-line message with -v is fine.
>
>

-- 
Alain Leufroy
LOGILAB, Paris (France)
http://www.logilab.fr
Informatique scientifique & gestion de connaissances


More information about the Mercurial-devel mailing list