[PATCH 3 of 5] test-histedit: fix instability creation test

Kevin Bullock kbullock+mercurial at ringworld.org
Wed Jan 16 13:28:53 CST 2013


On 16 Jan 2013, at 12:28 PM, pierre-yves.david at logilab.fr wrote:

> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at logilab.fr>
> # Date 1358360256 -3600
> # Node ID 5be4bc70c20574a1ea3af9ce99b7921922ace0ef
> # Parent  9a39e144ac7a29debbbd9b63904b40e980278642
> test-histedit: fix instability creation test
> 
> The current test does not rewrite anything and therefor does not create any
> instability.
> 
> We also clean up the repo state after the test. This required the rebase
> extension.
> 
> diff --git a/tests/test-histedit-obsolete.t b/tests/test-histedit-obsolete.t
> --- a/tests/test-histedit-obsolete.t
> +++ b/tests/test-histedit-obsolete.t
> @@ -12,10 +12,11 @@ Enable obsolete
>> logtemplate= {rev}:{node|short} {desc|firstline}
>> [phases]
>> publish=False
>> [extensions]'
>> histedit=
> +  > rebase=
>> 
>> obs=${TESTTMP}/obs.py
>> EOF
> 
>   $ hg init base
> @@ -146,10 +147,27 @@ Check that histedit respect phases
> Test that rewriting leaving instability behind is allowed
> ---------------------------------------------------------------------
> 
>   $ hg up '.^'
>   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
> -  $ hg phase --force --draft .
> +  $ hg ph -fd '.'

Unnecessary change that _decreases_ the test readability.

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



More information about the Mercurial-devel mailing list