Patchwork [1,of,3] test-narrow-clone-stream: include uppercase letter in filename

login
register
mail settings
Submitter Yuya Nishihara
Date Nov. 10, 2018, 3:25 a.m.
Message ID <2016ce0a58b83c08f110.1541820303@mimosa>
Download mbox | patch
Permalink /patch/36501/
State Accepted
Headers show

Comments

Yuya Nishihara - Nov. 10, 2018, 3:25 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1541817382 -32400
#      Sat Nov 10 11:36:22 2018 +0900
# Node ID 2016ce0a58b83c08f110ee52feb1dd23c4179871
# Parent  157f0e29eaa35adc2488709f5c00f2865a4d5361
test-narrow-clone-stream: include uppercase letter in filename

This makes encoded filenames differ from the original names.
Pulkit Goyal - Nov. 12, 2018, 6:26 p.m.
On Sat, Nov 10, 2018 at 6:26 AM Yuya Nishihara <yuya@tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1541817382 -32400
> #      Sat Nov 10 11:36:22 2018 +0900
> # Node ID 2016ce0a58b83c08f110ee52feb1dd23c4179871
> # Parent  157f0e29eaa35adc2488709f5c00f2865a4d5361
> test-narrow-clone-stream: include uppercase letter in filename
>
> This makes encoded filenames differ from the original names.
>

Queued this series. Many many thanks for following up on this.

(I was on vacation and hence couldn't reply to your related comments)

Patch

diff --git a/tests/test-narrow-clone-stream.t b/tests/test-narrow-clone-stream.t
--- a/tests/test-narrow-clone-stream.t
+++ b/tests/test-narrow-clone-stream.t
@@ -18,17 +18,17 @@  Server setup
   $ mkdir dir
   $ mkdir dir/src
   $ cd dir/src
-  $ for x in `$TESTDIR/seq.py 20`; do echo $x > "f$x"; hg add "f$x"; hg commit -m "Commit src $x"; done
+  $ for x in `$TESTDIR/seq.py 20`; do echo $x > "F$x"; hg add "F$x"; hg commit -m "Commit src $x"; done
 
   $ cd ..
   $ mkdir tests
   $ cd tests
-  $ for x in `$TESTDIR/seq.py 20`; do echo $x > "f$x"; hg add "f$x"; hg commit -m "Commit src $x"; done
+  $ for x in `$TESTDIR/seq.py 20`; do echo $x > "F$x"; hg add "F$x"; hg commit -m "Commit src $x"; done
   $ cd ../../..
 
 Trying to stream clone when the server does not support it
 
-  $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/f10" --stream
+  $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/F10" --stream
   streaming all changes
   remote: abort: server does not support narrow stream clones
   abort: pull failed on remote
@@ -41,7 +41,7 @@  Enable stream clone on the server
 
 Cloning a specific file when stream clone is supported
 
-  $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/f10" --stream
+  $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/F10" --stream
   streaming all changes
   * files to transfer, * KB of data (glob)
   transferred * KB in * seconds (* */sec) (glob)
@@ -49,7 +49,7 @@  Cloning a specific file when stream clon
   $ cd narrow
   $ ls
   $ hg tracked
-  I path:dir/src/f10
+  I path:dir/src/F10
 
 Making sure we have the correct set of requirements