Patchwork test-revset: update test that isn't broken on default branch

login
register
mail settings
Submitter Yuya Nishihara
Date May 26, 2015, 2:56 p.m.
Message ID <e43162c556830f24e7de.1432652212@mimosa>
Download mbox | patch
Permalink /patch/9274/
State Accepted
Headers show

Comments

Yuya Nishihara - May 26, 2015, 2:56 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1432649690 -32400
#      Tue May 26 23:14:50 2015 +0900
# Node ID e43162c556830f24e7de564786bded96fecdc947
# Parent  61b3529e23778f542044d24bb1ccd5688516a7f0
test-revset: update test that isn't broken on default branch

"X or wdir()" just works because the default branch includes 40a2cf1c765b.
Augie Fackler - May 26, 2015, 6:45 p.m.
On Tue, May 26, 2015 at 11:56:52PM +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1432649690 -32400
> #      Tue May 26 23:14:50 2015 +0900
> # Node ID e43162c556830f24e7de564786bded96fecdc947
> # Parent  61b3529e23778f542044d24bb1ccd5688516a7f0
> test-revset: update test that isn't broken on default branch

Nice, I was just running into this. Queued, thanks.

>
> "X or wdir()" just works because the default branch includes 40a2cf1c765b.
>
> diff --git a/tests/test-revset.t b/tests/test-revset.t
> --- a/tests/test-revset.t
> +++ b/tests/test-revset.t
> @@ -708,9 +708,9 @@ BROKEN: should be '-1'
>  Test working-directory revision
>    $ hg debugrevspec 'wdir()'
>    None
> -BROKEN: should include 'None'
>    $ hg debugrevspec 'tip or wdir()'
>    9
> +  None
>    $ hg debugrevspec '0:tip and wdir()'
>
>    $ log 'outgoing()'
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel

Patch

diff --git a/tests/test-revset.t b/tests/test-revset.t
--- a/tests/test-revset.t
+++ b/tests/test-revset.t
@@ -708,9 +708,9 @@  BROKEN: should be '-1'
 Test working-directory revision
   $ hg debugrevspec 'wdir()'
   None
-BROKEN: should include 'None'
   $ hg debugrevspec 'tip or wdir()'
   9
+  None
   $ hg debugrevspec '0:tip and wdir()'
 
   $ log 'outgoing()'