test-narrow-clone-stream.t
106 lines
| 2.3 KiB
| text/troff
|
Tads3Lexer
/ tests / test-narrow-clone-stream.t
Yuya Nishihara
|
r40619 | #testcases tree flat-fncache flat-nofncache | ||
Pulkit Goyal
|
r40529 | |||
Pulkit Goyal
|
r40374 | Tests narrow stream clones | ||
$ . "$TESTDIR/narrow-library.sh" | ||||
Pulkit Goyal
|
r40529 | #if tree | ||
$ cat << EOF >> $HGRCPATH | ||||
> [experimental] | ||||
> treemanifest = 1 | ||||
> EOF | ||||
#endif | ||||
Yuya Nishihara
|
r40619 | #if flat-nofncache | ||
$ cat << EOF >> $HGRCPATH | ||||
> [format] | ||||
> usefncache = 0 | ||||
> EOF | ||||
#endif | ||||
Pulkit Goyal
|
r40374 | Server setup | ||
$ hg init master | ||||
$ cd master | ||||
$ mkdir dir | ||||
$ mkdir dir/src | ||||
$ cd dir/src | ||||
Yuya Nishihara
|
r40618 | $ for x in `$TESTDIR/seq.py 20`; do echo $x > "F$x"; hg add "F$x"; hg commit -m "Commit src $x"; done | ||
Pulkit Goyal
|
r40374 | |||
$ cd .. | ||||
$ mkdir tests | ||||
$ cd tests | ||||
Yuya Nishihara
|
r40618 | $ for x in `$TESTDIR/seq.py 20`; do echo $x > "F$x"; hg add "F$x"; hg commit -m "Commit src $x"; done | ||
Pulkit Goyal
|
r40374 | $ cd ../../.. | ||
Trying to stream clone when the server does not support it | ||||
Yuya Nishihara
|
r40618 | $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/F10" --stream | ||
Pulkit Goyal
|
r40374 | streaming all changes | ||
remote: abort: server does not support narrow stream clones | ||||
abort: pull failed on remote | ||||
Martin von Zweigbergk
|
r47739 | [100] | ||
Pulkit Goyal
|
r40374 | |||
Enable stream clone on the server | ||||
Augie Fackler
|
r40582 | $ echo "[experimental]" >> master/.hg/hgrc | ||
$ echo "server.stream-narrow-clones=True" >> master/.hg/hgrc | ||||
Pulkit Goyal
|
r40374 | |||
Cloning a specific file when stream clone is supported | ||||
Yuya Nishihara
|
r40618 | $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/F10" --stream | ||
Pulkit Goyal
|
r40374 | streaming all changes | ||
Pulkit Goyal
|
r40529 | * files to transfer, * KB of data (glob) | ||
transferred * KB in * seconds (* */sec) (glob) | ||||
$ cd narrow | ||||
Joerg Sonnenberger
|
r45218 | $ ls -A | ||
.hg | ||||
Pulkit Goyal
|
r40529 | $ hg tracked | ||
Yuya Nishihara
|
r40618 | I path:dir/src/F10 | ||
Pulkit Goyal
|
r40529 | |||
Making sure we have the correct set of requirements | ||||
r49295 | $ hg debugrequires | |||
r42705 | dotencode (tree !) | |||
dotencode (flat-fncache !) | ||||
Raphaël Gomès
|
r49142 | dirstate-v2 (dirstate-v2 !) | ||
r42705 | fncache (tree !) | |||
fncache (flat-fncache !) | ||||
Pulkit Goyal
|
r40529 | generaldelta | ||
narrowhg-experimental | ||||
r47646 | persistent-nodemap (rust !) | |||
r47636 | revlog-compression-zstd (zstd !) | |||
Pulkit Goyal
|
r40529 | revlogv1 | ||
r49515 | share-safe | |||
Boris Feld
|
r40935 | sparserevlog | ||
Pulkit Goyal
|
r40529 | store | ||
treemanifest (tree !) | ||||
Making sure store has the required files | ||||
$ ls .hg/store/ | ||||
r52074 | 00changelog-????????.nd (glob) (rust !) | |||
00changelog.d | ||||
Pulkit Goyal
|
r40529 | 00changelog.i | ||
r52074 | 00changelog.n (rust !) | |||
Pulkit Goyal
|
r40529 | 00manifest.i | ||
r42705 | data | |||
fncache (tree !) | ||||
fncache (flat-fncache !) | ||||
Pulkit Goyal
|
r40529 | meta (tree !) | ||
narrowspec | ||||
r49515 | requires | |||
Pulkit Goyal
|
r40529 | undo | ||
undo.backupfiles | ||||
Checking that repository has all the required data and not broken | ||||
$ hg verify | ||||
checking changesets | ||||
checking manifests | ||||
checking directory manifests (tree !) | ||||
crosschecking files in changesets and manifests | ||||
checking files | ||||
Raphaël Gomès
|
r50721 | checking dirstate | ||
Pulkit Goyal
|
r40529 | checked 40 changesets with 1 changes to 1 files | ||