[PATCH 1 of 2] test-mq-qimport: move phase test bits to before parts requiring serve

Pierre-Yves David pierre-yves.david at logilab.fr
Mon Jun 18 04:26:02 CDT 2012


On Sun, Jun 17, 2012 at 09:24:48PM +0200, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1339960144 -7200
> # Node ID c34dabe0218a4a8f0521f30c993e0fab3ed424cf
> # Parent  20c4d99cc7e96666de519418df51b6d5b7d9fad2
> test-mq-qimport: move phase test bits to before parts requiring serve
> 
> The motivation for this move is to no longer have the phase test preconditions
> dependent on the postconditions of the serve test.
> 
> Note that moving the phase test higher up also changes its preconditions.
> Because of the move, the output of the first "hg -q qpush" changes from
> "now at: 0" to "now at: this-name-is-better".

LGTM

> diff --git a/tests/test-mq-qimport.t b/tests/test-mq-qimport.t
> --- a/tests/test-mq-qimport.t
> +++ b/tests/test-mq-qimport.t
> @@ -238,6 +238,22 @@
>    abort: patch name cannot begin with ".hg"
>    [255]
>  
> +check qimport phase:
> +
> +  $ hg -q qpush
> +  now at: this-name-is-better
> +  $ hg phase qparent
> +  1: draft
> +  $ hg qimport -r qparent
> +  $ hg phase qbase
> +  1: draft

-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120618/76d2dc5f/attachment.pgp>


More information about the Mercurial-devel mailing list