##// END OF EJS Templates
changelog: never inline changelog...
changelog: never inline changelog The test suite mostly use small repositories, that implies that most changelog in the tests are inlined. As a result, non-inlined changelog are quite poorly tested. Since non-inline changelog are most common case for serious repositories, this lack of testing is a significant problem that results in high profile issue like the one recently fixed by 66417f55ea33 and 849745d7da89. Inlining the changelog does not bring much to the table, the number of total file saved is negligible, and the changelog will be read by most operation anyway. So this changeset is make it so we never inline the changelog, and de-inline the one that are still inlined whenever we touch them. By doing that, we remove the "dual code path" situation for writing new entry to the changelog and move to a "single code path" situation. Having a single code path simplify the code and make sure it is covered by test (if test cover that situation obviously) This impact all tests that care about the number of file and the exchange size, but there is nothing too complicated in them just a lot of churn. The churn is made "worse" by the fact rust will use the persistent nodemap on any changelog now. Which is overall a win as it means testing the persistent nodemap more and having less special cases. In short, having inline changelog is mostly useless and an endless source of pain. We get rid of it.

File last commit:

r52074:dcaa2df1 default
r52074:dcaa2df1 default
Show More
test-narrow-clone-stream.t
106 lines | 2.3 KiB | text/troff | Tads3Lexer
/ tests / test-narrow-clone-stream.t
Yuya Nishihara
test-narrow-clone-stream: include no usefncache case which is broken...
r40619 #testcases tree flat-fncache flat-nofncache
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529
Pulkit Goyal
streamclone: new server config and some API changes for narrow stream clones...
r40374 Tests narrow stream clones
$ . "$TESTDIR/narrow-library.sh"
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 #if tree
$ cat << EOF >> $HGRCPATH
> [experimental]
> treemanifest = 1
> EOF
#endif
Yuya Nishihara
test-narrow-clone-stream: include no usefncache case which is broken...
r40619 #if flat-nofncache
$ cat << EOF >> $HGRCPATH
> [format]
> usefncache = 0
> EOF
#endif
Pulkit Goyal
streamclone: new server config and some API changes for narrow stream clones...
r40374 Server setup
$ hg init master
$ cd master
$ mkdir dir
$ mkdir dir/src
$ cd dir/src
Yuya Nishihara
test-narrow-clone-stream: include uppercase letter in filename...
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
streamclone: new server config and some API changes for narrow stream clones...
r40374
$ cd ..
$ mkdir tests
$ cd tests
Yuya Nishihara
test-narrow-clone-stream: include uppercase letter in filename...
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
streamclone: new server config and some API changes for narrow stream clones...
r40374 $ cd ../../..
Trying to stream clone when the server does not support it
Yuya Nishihara
test-narrow-clone-stream: include uppercase letter in filename...
r40618 $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/F10" --stream
Pulkit Goyal
streamclone: new server config and some API changes for narrow stream clones...
r40374 streaming all changes
remote: abort: server does not support narrow stream clones
abort: pull failed on remote
Martin von Zweigbergk
errors: raise RemoteError in some places in exchange.py...
r47739 [100]
Pulkit Goyal
streamclone: new server config and some API changes for narrow stream clones...
r40374
Enable stream clone on the server
Augie Fackler
tests: fix config knob in test-narrow-clone-stream.t...
r40582 $ echo "[experimental]" >> master/.hg/hgrc
$ echo "server.stream-narrow-clones=True" >> master/.hg/hgrc
Pulkit Goyal
streamclone: new server config and some API changes for narrow stream clones...
r40374
Cloning a specific file when stream clone is supported
Yuya Nishihara
test-narrow-clone-stream: include uppercase letter in filename...
r40618 $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/F10" --stream
Pulkit Goyal
streamclone: new server config and some API changes for narrow stream clones...
r40374 streaming all changes
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 * files to transfer, * KB of data (glob)
transferred * KB in * seconds (* */sec) (glob)
$ cd narrow
Joerg Sonnenberger
tests: deal with "ls" vs "ls -A" difference on 2BSD derived systems...
r45218 $ ls -A
.hg
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 $ hg tracked
Yuya Nishihara
test-narrow-clone-stream: include uppercase letter in filename...
r40618 I path:dir/src/F10
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529
Making sure we have the correct set of requirements
test: use `hg debugrequires` instead of `cat` in some tests...
r49295 $ hg debugrequires
run-tests: stop matching line for missing feature...
r42705 dotencode (tree !)
dotencode (flat-fncache !)
Raphaël Gomès
dirstate-v2: fix confusion between requirement and format config variable...
r49142 dirstate-v2 (dirstate-v2 !)
run-tests: stop matching line for missing feature...
r42705 fncache (tree !)
fncache (flat-fncache !)
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 generaldelta
narrowhg-experimental
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
revlog-compression: use zstd by default (if available)...
r47636 revlog-compression-zstd (zstd !)
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
Boris Feld
test: enable sparse-revlog for test-narrow-clone-stream.t...
r40935 sparserevlog
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 store
treemanifest (tree !)
Making sure store has the required files
$ ls .hg/store/
changelog: never inline changelog...
r52074 00changelog-????????.nd (glob) (rust !)
00changelog.d
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 00changelog.i
changelog: never inline changelog...
r52074 00changelog.n (rust !)
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 00manifest.i
run-tests: stop matching line for missing feature...
r42705 data
fncache (tree !)
fncache (flat-fncache !)
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 meta (tree !)
narrowspec
share-safe: enable by default (BC)...
r49515 requires
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
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
verify: also check dirstate...
r50721 checking dirstate
Pulkit Goyal
store: introduce _matchtrackedpath() and use it to filter store files...
r40529 checked 40 changesets with 1 changes to 1 files