[PATCH 2 of 2] add `allparents' item

Greg Ward greg-hg at gerg.ca
Tue Jun 23 20:14:09 CDT 2009


On Tue, Jun 23, 2009 at 8:21 AM, Paolo Bonzini<pbonzini at redhat.com> wrote:
> # HG changeset patch
> # User Paolo Bonzini <pbonzini at redhat.com>
> # Date 1245752617 -7200
> # Node ID 173329689167559de9a319d21c5518a8e04f114f
> # Parent  a7f47d6a203387ba5bcb4021a2de01634af47242
> add `allparents' item
>
> The `allparents' item includes all parents, as if in --debug mode.
> The included test shows one use case, which is to always show the
> first parent like `hg export' does.
>
> The test also provides additional coverage for the template engine,
> since `no_*' entries were not tested.

A comment on the comment: what is an "item"?  It looks to me like the
proposed 'allparents' is an option common to many commands.  If I'm
correct, you should probably refer to it as the "--allparents option".

Also, I think the notion of "at most two parents" is pretty hardwired
in the guts of Mercurial.  So it would be equally accurate, and
possibly clearer, to make this --bothparents.

Greg



More information about the Mercurial-devel mailing list