hg summary?

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Sat Oct 17 07:27:51 CDT 2009


On Sat, Oct 17, 2009 at 1:25 AM, Matt Mackall <mpm at selenic.com> wrote:
> I'm considering a new command that can summarize the state of the
> working directory, including its relationship to the repository. It
> would combine information currently available from parents, id, status,
> branch, resolve, and log. It might look something like this:
>
> $ hg summary
> parent: 8:9f7ea411f54e 1.2
>  Another long-overdue update
> branch: default
> commit: 1 unknown (clean)
> update: 12 new changesets, 2 branch heads (merge)

I like it. I also often do a `hg glog --rev .:null --limit 5` to get a
quick reminder of where I am. Maybe something like this (with a terse,
one-line template) could be included if graphlog is installed? Or
maybe even something that goes three revs above and three revs below
.?

In any case, I think it would be good if we designed this command from
the start to be extensible by extensions (like mq - as Peter Hosey
suggests, - pbranch, graphlog, bookmark). And document from the start
that its output is subject to change.

-parren



More information about the Mercurial mailing list