Patchwork test-treemanifest: ensure manifest command isn't broken

login
register
mail settings
Submitter Augie Fackler
Date Aug. 4, 2016, 4:59 p.m.
Message ID <e81f6ebeca390d19f3da.1470329946@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/16091/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 4, 2016, 4:59 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1469737655 14400
#      Thu Jul 28 16:27:35 2016 -0400
# Node ID e81f6ebeca390d19f3da1871e9518a16871b090a
# Parent  f2846d54664567083fdd8e400b8021e09b498c48
test-treemanifest: ensure manifest command isn't broken

I realized we weren't testing this while hunting a broken manifest
command bug that ended up being narrowhg's fault.
via Mercurial-devel - Aug. 5, 2016, 6 a.m.
Thanks, pushed to committed with some minor changes.

On Thu, Aug 4, 2016 at 9:59 AM, Augie Fackler <raf@durin42.com> wrote:
> # HG changeset patch
> # User Augie Fackler <augie@google.com>
> # Date 1469737655 14400
> #      Thu Jul 28 16:27:35 2016 -0400
> # Node ID e81f6ebeca390d19f3da1871e9518a16871b090a
> # Parent  f2846d54664567083fdd8e400b8021e09b498c48
> test-treemanifest: ensure manifest command isn't broken
>
> I realized we weren't testing this while hunting a broken manifest
> command bug that ended up being narrowhg's fault.
>
> diff --git a/tests/test-treemanifest.t b/tests/test-treemanifest.t
> --- a/tests/test-treemanifest.t
> +++ b/tests/test-treemanifest.t
> @@ -338,6 +338,20 @@ Shelving and unshelving should work
>     1
>    +foo
>
> +The manifest command shouldn't be broken

I worded this more positively :-) Also moved test case up a little so
it's close to where we happened to have a call to "hg files" already.

> +  $ hg manifest
> +  a
> +  b
> +  dir1/a
> +  dir1/b
> +  dir1/dir1/a
> +  dir1/dir1/b
> +  dir1/dir2/a
> +  dir1/dir2/b
> +  dir2/a
> +  dir2/b
> +  e
> +
>  Pushing from treemanifest repo to an empty repo makes that a treemanifest repo
>
>    $ cd ..
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Patch

diff --git a/tests/test-treemanifest.t b/tests/test-treemanifest.t
--- a/tests/test-treemanifest.t
+++ b/tests/test-treemanifest.t
@@ -338,6 +338,20 @@  Shelving and unshelving should work
    1
   +foo
 
+The manifest command shouldn't be broken
+  $ hg manifest
+  a
+  b
+  dir1/a
+  dir1/b
+  dir1/dir1/a
+  dir1/dir1/b
+  dir1/dir2/a
+  dir1/dir2/b
+  dir2/a
+  dir2/b
+  e
+
 Pushing from treemanifest repo to an empty repo makes that a treemanifest repo
 
   $ cd ..