[PATCH v3] histedit: expose histedit plan via tags RFC

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun Jan 17 12:21:25 CST 2016



On 12/29/2015 10:54 PM, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1451448191 0
> #      Wed Dec 30 04:03:11 2015 +0000
> # Node ID af01a4ef065526a6e47de74e9cebe49b1ec99d33
> # Parent  23541bdd1610c08af247f9c8719045cf247ce541
> histedit: expose histedit plan via tags RFC

The idea of exposing histedit data is good, as pointed out in review of 
V1, you should not extend the "tag" API for this. We have generic 
extensible namespace API now, please use this.

[…]

> diff --git a/tests/test-histedit-tags.t b/tests/test-histedit-tags.t
> new file mode 100644
> --- /dev/null
> +++ b/tests/test-histedit-tags.t
> @@ -0,0 +1,306 @@
> +  $ . "$TESTDIR/histedit-helpers.sh"
> +
> +  $ cat >> $HGRCPATH <<EOF
> +  > [extensions]
> +  > histedit=
> +  > EOF
> +
> +  $ hg init r
> +  $ cd r
> +
> +  $ for x in 0 1 2 3 4 5 6 7 8 9 a b c d e; do
> +  >     echo $x > $x
> +  >     hg add $x
> +  >     hg ci -m $x
> +  > done
> +
> +  $ hg log --graph
> +  @  changeset:   14:4afbae3f881f
> +  |  tag:         tip
> +  |  user:        test
> +  |  date:        Thu Jan 01 00:00:00 1970 +0000
> +  |  summary:     e

Consider using a custom log template in your test for a more compact and 
easy to read ouput.

Cheers,

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list