hg summary?
Peter Hosey
boredzo at gmail.com
Sat Oct 17 07:40:45 UTC 2009
On Oct 16, 2009, at 16:25:45, Matt Mackall wrote:
> I'm considering a new command that can summarize the state of the
> working directory, including its relationship to the repository.
I've done this in a command I named hg report. Here's what the output
looks like:
default = bb+ssh://boredzo/growl
working copy parent: 4715:d50885b2bc6f really-fix-generateHgRevision-
in-archived-checkouts qtip tip
current branch: default
--
applied: unapplied:
really-fix-generateHgRevision-in-archived-checkouts qtip tip
burninate-rippling (next)
Xcode-meaningless-change
burninate-setAutoReverses
fix-generateHgRevision-in-archived-checkouts qbase move-
GrowlWindowTransition-dealloc
propertyize-GrowlWindowTransition
dont-
use-accessors-from-initializers
remove-
initWithWindow_direction
(wait-
before-ejecting) +excessive-uptime
--
status:
? Extras/GrowlMail/GrowlMail.xcodeproj/project.pbxproj.orig
? Extras/GrowlMail/MailHeaders-temp.h
? Extras/GrowlMail/MailHeaders.h.orig
? Extras/GrowlMail/Message+GrowlMail.m.orig
? GAB-AlwaysLookForRunningGHAFirst.diff
The bit in the middle is the output of hg qlist, a command I wrote to
be clearer than mq's own commands for querying patch-queue status.
(There's also a one-after-the-other format a user can use instead of
the side-by-side format. hg report doesn't use it, but this could be a
config option.)
Both the report command and the qlist command are available on
Bitbucket:
https://bitbucket.org/boredzo/report-extension/
https://bitbucket.org/boredzo/qimprovements/
The style of the code doesn't currently fit Mercurial's, but I'd be
willing to fix that if you want to include or borrow code from either
or both of them.
More information about the Mercurial
mailing list