tests/test-clone-stream.t
changeset 48620 a6f16ec07ed7
parent 48344 f447b90a4b11
child 48675 a3cf460a6b1b
equal deleted inserted replaced
48619:8475a1364909 48620:a6f16ec07ed7
     8   > bundle2.stream = no
     8   > bundle2.stream = no
     9   > EOF
     9   > EOF
    10 #endif
    10 #endif
    11 
    11 
    12 Initialize repository
    12 Initialize repository
    13 the status call is to check for issue5130
       
    14 
    13 
    15   $ hg init server
    14   $ hg init server
    16   $ cd server
    15   $ cd server
    17   $ touch foo
    16   $ sh $TESTDIR/testlib/stream_clone_setup.sh
    18   $ hg -q commit -A -m initial
       
    19   >>> for i in range(1024):
       
    20   ...     with open(str(i), 'wb') as fh:
       
    21   ...         fh.write(b"%d" % i) and None
       
    22   $ hg -q commit -A -m 'add a lot of files'
       
    23   $ hg st
       
    24 
       
    25 add files with "tricky" name:
       
    26 
       
    27   $ echo foo > 00changelog.i
       
    28   $ echo foo > 00changelog.d
       
    29   $ echo foo > 00changelog.n
       
    30   $ echo foo > 00changelog-ab349180a0405010.nd
       
    31   $ echo foo > 00manifest.i
       
    32   $ echo foo > 00manifest.d
       
    33   $ echo foo > foo.i
       
    34   $ echo foo > foo.d
       
    35   $ echo foo > foo.n
       
    36   $ echo foo > undo.py
       
    37   $ echo foo > undo.i
       
    38   $ echo foo > undo.d
       
    39   $ echo foo > undo.n
       
    40   $ echo foo > undo.foo.i
       
    41   $ echo foo > undo.foo.d
       
    42   $ echo foo > undo.foo.n
       
    43   $ echo foo > undo.babar
       
    44   $ mkdir savanah
       
    45   $ echo foo > savanah/foo.i
       
    46   $ echo foo > savanah/foo.d
       
    47   $ echo foo > savanah/foo.n
       
    48   $ echo foo > savanah/undo.py
       
    49   $ echo foo > savanah/undo.i
       
    50   $ echo foo > savanah/undo.d
       
    51   $ echo foo > savanah/undo.n
       
    52   $ echo foo > savanah/undo.foo.i
       
    53   $ echo foo > savanah/undo.foo.d
       
    54   $ echo foo > savanah/undo.foo.n
       
    55   $ echo foo > savanah/undo.babar
       
    56   $ mkdir data
       
    57   $ echo foo > data/foo.i
       
    58   $ echo foo > data/foo.d
       
    59   $ echo foo > data/foo.n
       
    60   $ echo foo > data/undo.py
       
    61   $ echo foo > data/undo.i
       
    62   $ echo foo > data/undo.d
       
    63   $ echo foo > data/undo.n
       
    64   $ echo foo > data/undo.foo.i
       
    65   $ echo foo > data/undo.foo.d
       
    66   $ echo foo > data/undo.foo.n
       
    67   $ echo foo > data/undo.babar
       
    68   $ mkdir meta
       
    69   $ echo foo > meta/foo.i
       
    70   $ echo foo > meta/foo.d
       
    71   $ echo foo > meta/foo.n
       
    72   $ echo foo > meta/undo.py
       
    73   $ echo foo > meta/undo.i
       
    74   $ echo foo > meta/undo.d
       
    75   $ echo foo > meta/undo.n
       
    76   $ echo foo > meta/undo.foo.i
       
    77   $ echo foo > meta/undo.foo.d
       
    78   $ echo foo > meta/undo.foo.n
       
    79   $ echo foo > meta/undo.babar
       
    80   $ mkdir store
       
    81   $ echo foo > store/foo.i
       
    82   $ echo foo > store/foo.d
       
    83   $ echo foo > store/foo.n
       
    84   $ echo foo > store/undo.py
       
    85   $ echo foo > store/undo.i
       
    86   $ echo foo > store/undo.d
       
    87   $ echo foo > store/undo.n
       
    88   $ echo foo > store/undo.foo.i
       
    89   $ echo foo > store/undo.foo.d
       
    90   $ echo foo > store/undo.foo.n
       
    91   $ echo foo > store/undo.babar
       
    92 
       
    93 Name with special characters
       
    94 
       
    95   $ echo foo > store/CélesteVille_is_a_Capital_City
       
    96 
       
    97 name causing issue6581
       
    98 
       
    99   $ mkdir -p container/isam-build-centos7/
       
   100   $ touch container/isam-build-centos7/bazel-coverage-generator-sandboxfs-compatibility-0758e3e4f6057904d44399bd666faba9e7f40686.patch
       
   101 
       
   102 Add all that
       
   103 
       
   104   $ hg add .
       
   105   adding 00changelog-ab349180a0405010.nd
    17   adding 00changelog-ab349180a0405010.nd
   106   adding 00changelog.d
    18   adding 00changelog.d
   107   adding 00changelog.i
    19   adding 00changelog.i
   108   adding 00changelog.n
    20   adding 00changelog.n
   109   adding 00manifest.d
    21   adding 00manifest.d
   163   adding undo.foo.i
    75   adding undo.foo.i
   164   adding undo.foo.n
    76   adding undo.foo.n
   165   adding undo.i
    77   adding undo.i
   166   adding undo.n
    78   adding undo.n
   167   adding undo.py
    79   adding undo.py
   168   $ hg ci -m 'add files with "tricky" name'
    80 
   169   $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid
    81   $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid
   170   $ cat hg.pid > $DAEMON_PIDS
    82   $ cat hg.pid > $DAEMON_PIDS
   171   $ cd ..
    83   $ cd ..
   172 
    84 
   173 Check local clone
    85 Check local clone