Patchwork [1,of,3] tests: check that local commit data gets transferred

login
register
mail settings
Submitter via Mercurial-devel
Date Aug. 26, 2016, 5:47 p.m.
Message ID <5cc153cfd69ec19038eb.1472233652@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/16456/
State Accepted
Headers show

Comments

via Mercurial-devel - Aug. 26, 2016, 5:47 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1472157127 25200
#      Thu Aug 25 13:32:07 2016 -0700
# Node ID 5cc153cfd69ec19038eb61a87ad33eb233293678
# Parent  a1e7c55ba6f104e67e4af1e406b1e93d998c9841
tests: check that local commit data gets transferred
via Mercurial-devel - Aug. 26, 2016, 5:48 p.m.
Sorry, I should have added the "remotefilelog" flag on this series.

On Fri, Aug 26, 2016 at 10:47 AM, Martin von Zweigbergk
<martinvonz@google.com> wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz@google.com>
> # Date 1472157127 25200
> #      Thu Aug 25 13:32:07 2016 -0700
> # Node ID 5cc153cfd69ec19038eb61a87ad33eb233293678
> # Parent  a1e7c55ba6f104e67e4af1e406b1e93d998c9841
> tests: check that local commit data gets transferred
>
> diff -r a1e7c55ba6f1 -r 5cc153cfd69e tests/test-clone.t
> --- a/tests/test-clone.t        Tue Aug 02 15:37:08 2016 -0700
> +++ b/tests/test-clone.t        Thu Aug 25 13:32:07 2016 -0700
> @@ -35,14 +35,21 @@
>    $ cat x
>    x
>
> +  $ ls .hg/store/data
> +  $ echo foo > f
> +  $ hg add f
> +  $ hg ci -m 'local content'
> +  $ ls .hg/store/data
> +  4a0a19218e082a343a1b17e5333409af9d98f0f5
> +
>    $ cd ..
>
>  # shallow clone from shallow
>
>    $ hgcloneshallow ssh://user@dummy/shallow shallow2  --noupdate
>    streaming all changes
> -  2 files to transfer, 227 bytes of data
> -  transferred 227 bytes in 0.0 seconds (*/sec) (glob)
> +  3 files to transfer, 564 bytes of data
> +  transferred 564 bytes in 0.0 seconds (*/sec) (glob)
>    searching for changes
>    no changes found
>    $ cd shallow2
> @@ -53,9 +60,11 @@
>    remotefilelog
>    revlogv1
>    store
> +  $ ls .hg/store/data
> +  4a0a19218e082a343a1b17e5333409af9d98f0f5
>
>    $ hg update
> -  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
> +  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
>
>    $ cat x
>    x

Patch

diff -r a1e7c55ba6f1 -r 5cc153cfd69e tests/test-clone.t
--- a/tests/test-clone.t	Tue Aug 02 15:37:08 2016 -0700
+++ b/tests/test-clone.t	Thu Aug 25 13:32:07 2016 -0700
@@ -35,14 +35,21 @@ 
   $ cat x
   x
 
+  $ ls .hg/store/data
+  $ echo foo > f
+  $ hg add f
+  $ hg ci -m 'local content'
+  $ ls .hg/store/data
+  4a0a19218e082a343a1b17e5333409af9d98f0f5
+
   $ cd ..
 
 # shallow clone from shallow
 
   $ hgcloneshallow ssh://user@dummy/shallow shallow2  --noupdate
   streaming all changes
-  2 files to transfer, 227 bytes of data
-  transferred 227 bytes in 0.0 seconds (*/sec) (glob)
+  3 files to transfer, 564 bytes of data
+  transferred 564 bytes in 0.0 seconds (*/sec) (glob)
   searching for changes
   no changes found
   $ cd shallow2
@@ -53,9 +60,11 @@ 
   remotefilelog
   revlogv1
   store
+  $ ls .hg/store/data
+  4a0a19218e082a343a1b17e5333409af9d98f0f5
 
   $ hg update
-  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
   $ cat x
   x