[PATCH 0 of 1 phases] displaying phase in the UI

Matt Mackall mpm at selenic.com
Tue Jan 17 19:08:06 UTC 2012


On Tue, 2012-01-17 at 19:03 +0100, pierre-yves.david at logilab.fr wrote:
> This changeset add phase data in default changeset template. Sadly only for
> debug for backward compatibility reason.
> 
> I'm also considering altering the output of summary which is much less likely to
> be parsed. The idea would be to add phase data about parents:
> 
> the default output looks like:
> 
>     parent: 16068:761ab1a26b67 tip
>      phases: add phase data to summary
>     branch: default
>     commit: 44 unknown (clean)
>     update: 167 new changesets, 61 branch heads (merge)
> 
> I did not find anything better than:
> 
> 
>     parent: 16068:761ab1a26b67 (draft) tip

I don't think that's a good place for it. Do we actually care about the
phase of the parent(s) here? I think what we really care about is what
phase our commit will be in.

>      phases: add phase data to summary
>     branch: default
>     commit: 44 unknown (clean)

So we might add (draft) here instead. But as that's the default and is
thus boring, we might only show (secret).

>     update: 167 new changesets, 61 branch heads (merge)

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial-devel mailing list