[PATCH 2 of 2 V2] show: implement underway view

Yuya Nishihara yuya at tcha.org
Thu Apr 13 08:26:49 EDT 2017


On Wed, 12 Apr 2017 20:31:36 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1492054275 25200
> #      Wed Apr 12 20:31:15 2017 -0700
> # Node ID b223da52ad3b22bb76dcb240677d330bce3eb6bf
> # Parent  60177a9b778cb65fdefd4486ce51475a746c4cb6
> show: implement underway view

> +    # Add working directory parent.
> +    wdirrev = repo['.'].rev()
> +    if wdirrev != nullrev:
> +        relevant += revset.baseset(set([wdirrev]))

Nit: "wdir" means repo[None].


More information about the Mercurial-devel mailing list