[PATCH 2 of 2 v2] hgweb: show obsolescence status of a commit

Anton Shestakov av6 at dwimlabs.net
Sat Nov 18 00:12:16 EST 2017


On Sat, 18 Nov 2017 12:41:06 +0800
Anton Shestakov <av6 at dwimlabs.net> wrote:

> 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 obsolete changeset
> +
> +  $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=paper' | grep -A3 '<td class="description">'

Turns out check-code tries to forbid grep with -A, only with not much
success (tests passed for me). I've sent a patch for it.

I'll send a v3.


More information about the Mercurial-devel mailing list