[PATCH 0 of 1] RFC: --hide-closed option for graphlog

timeless timeless at gmail.com
Wed Nov 25 02:18:22 CST 2009


On Wed, Nov 25, 2009 at 4:41 AM, Steve Losh <steve at stevelosh.com> wrote:
> This patch is more of an RFC to see if anyone else is interested.

definitely

> The option name and help text could probably use some work, but I want to see if anyone else would be interested this and/or had any advice.

hg help branches
hg branches [-a] [sic]

options:

 -a --active  show only branches that have unmerged heads
 -c --closed  show normal and closed branches

hg help glog
hg glog [OPTION]... [FILE]

 -l --limit     limit number of changes displayed
 -p --patch     show patch
 -r --rev       show the specified revision or range
    --style     display using template map file
    --template  display with template

Personally, I'd like us to try to use the exact same option names (and
text) unless there is a very good reason not to.

In this case, that means i'd ask for -a/--active and -c/--closed.  The
help for hg branches mostly (cough) implies that it defaults to
showing only open branches. I think that based on how graphlog
naturally works, it'll be fairly obvious to people if we're hiding
changesets, so I'd hope people would be ok to also changing graphlog
to default to hiding closed branches. That change should be a distinct
changeset.


More information about the Mercurial-devel mailing list