[PATCH 0 of 4] Add mechanisme for extension to extend default changeset log format.

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Jun 13 18:37:22 CDT 2011


On Sun, Jun 12, 2011 at 05:26:16PM -0500, Matt Mackall wrote:
> On Sat, 2011-06-11 at 14:31 +0200, Pierre-Yves David wrote:
> > This series add mechanism in cmdutils.changeset_printer to help extentions who
> > want to add new field for log.
> 
> Ok, this is interesting, by why do I want to change the output of status
> with mq and transplant half a decade later?

I won't insist to change mq and transplant output. Note that transplant will
only change for verbose output. We can either choose to demote all theses
changes to verbose or debug or even drop the last patches touching mq and transplant.

The main idea was: "provide a way for extensions to change the default output."
Change in mq and transplant was mostly for test purpose.

> > I won't hide that using it for mq and transplant is mostly for test purpose as
> > my main objective is to display "state" and "obsolet" related stuff.
> 
> Are you planning to write these things as extensions?

I already started to merge code from various experiment in a common "states"
extension. I choosed to get propotype working in extension before we can choose
what we want to put into core. For end july I'm planning to get coherent
prototypes on the three topics:

* States concept (as discuted on the wiki)
* Obsolete concept (as presented at the sprint)
* history rewriting (as discussed with parren)

States and Obsolete concept will be merged are aimed to be merged into core.
(In the best case for 2.0)

code is available on bitbucket but not very interresting now.:

https://bitbucket.org/marmoute/mutable-history/


There is three feature that would help me if available in 1.9.*

* In memory patching (for history rewriting purpose)

    Done by pmezard I hope it may make it for 1.9.0

* hookable default log (to ease display of state)

    Patches discussed in this thread. I was supprise to have no easy was to
    display additional information in default log.

* hidden changeset mechanism

    Started by hstuart and mg with abandonne. I might propose a patche before
    the code freeze.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list