[PATCH 2 of 6] histedit tests: fix check-code problems

Kevin Bullock kbullock+mercurial at ringworld.org
Thu Jun 28 10:23:20 CDT 2012


On Jun 28, 2012, at 8:59 AM, Augie Fackler wrote:

> # HG changeset patch
> # User Augie Fackler <raf at durin42.com>
> # Date 1340840071 18000
> # Node ID 8c127c7e0c6dcd94e572cf72c64596d08ced4ea0
> # Parent  1bc4037503e56a007ec011028945d34052acd832
> histedit tests: fix check-code problems
> 
> diff --git a/tests/test-histedit-bookmark-motion.t b/tests/test-histedit-bookmark-motion.t
> --- a/tests/test-histedit-bookmark-motion.t
> +++ b/tests/test-histedit-bookmark-motion.t
> @@ -1,6 +1,6 @@
>   $ . "$TESTDIR/histedit-helpers.sh"
> 
> -  $  cat >> $HGRCPATH <<EOF
> +  $ cat >> $HGRCPATH <<EOF
>> [extensions]
>> graphlog=
>> histedit=
> @@ -8,10 +8,7 @@
> 
>   $ hg init r
>   $ cd r
> -See if bookmarks are in core. If not, then we don't support bookmark
> -motion on this version of hg.
> -  $ hg bookmarks || exit 80
> -  no bookmarks set
> +

Minor nit: this seems more related to ripping out backwards-compatibility code than to pleasing check-code…?

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock

>   $ for x in a b c d e f ; do
>>    echo $x > $x
>>    hg add $x
> diff --git a/tests/test-histedit-revspec.t b/tests/test-histedit-revspec.t
> --- a/tests/test-histedit-revspec.t
> +++ b/tests/test-histedit-revspec.t
> @@ -44,7 +44,7 @@
> 
> 
> Run a dummy edit to make sure we get tip^^ correctly via revsingle.
> -  $ HGEDITOR=cat hg histedit tip^^
> +  $ HGEDITOR=cat hg histedit "tip^^"
>   pick eb57da33312f 2 three
>   pick c8e68270e35a 3 four
>   pick 08d98a8350f3 4 five
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list