[PATCH] hgweb: show obsolescence status of a commit

Anton Shestakov av6 at dwimlabs.net
Fri Nov 17 08:01:00 EST 2017


On Fri, 17 Nov 2017 16:39:16 +0800
Anton Shestakov <av6 at dwimlabs.net> wrote:

> # HG changeset patch
> # User Anton Shestakov <av6 at dwimlabs.net>
> # Date 1510906994 -28800
> #      Fri Nov 17 16:23:14 2017 +0800
> # Node ID 6ff29042647acd6d5f938b0e321afe4ce7df5508
> # Parent  f1e997d4a24fb59ddd33c3780104dc002f870f5c
> # EXP-Topic hgweb-more-info
> hgweb: show obsolescence status of a commit
> 
> A new method is added to basefilectx class because filectx and changectx are
> used interchangeably in hgweb views related to files (e.g. file view, diff,
> annotate).
> 
> As with phases, spartan theme shows a simple "obsolete: yes" on its own line
> (this allows replacing "yes" with something more useful in future, like output
> of obsfate* template functions). In gitweb and monoblue the element has gray
> background, in paper and coal the element is gray with a dashed underline.

[snip]

> diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
> --- a/tests/test-obsolete.t
> +++ b/tests/test-obsolete.t
> @@ -1015,6 +1015,43 @@ test summary output
>    orphan: 2 changesets
>    phase-divergent: 1 changesets
>  
> +#if serve
> +
> +  $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
> +  $ cat hg.pid >> $DAEMON_PIDS
> +
> +check changeset with instabilities

Oops, this should say "obsolete changeset". I can resend, but I will
wait for more feedback first.


More information about the Mercurial-devel mailing list