[Bug 5982] New: clone pooling functionality downgrades streaming clones into slow pull-like clones
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Thu Sep 6 21:33:25 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5982
Bug ID: 5982
Summary: clone pooling functionality downgrades streaming
clones into slow pull-like clones
Product: Mercurial
Version: 4.7
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: vgatien-baron at janestreet.com
CC: mercurial-devel at mercurial-scm.org
See test below. More specifically, it seems that the server config
server.preferuncompressed=True is ignored when doing a clone with pooling
enabled (when that ends up doing a clone rather than a pull underneath), but
--stream is respected.
$ hg init repo
$ cd repo
$ echo a > a
$ hg add a
$ hg commit -m a
$ cat > .hg/hgrc <<EOF
> [server]
> preferuncompressed=True
> EOF
$ cd ../
$ hg clone --config extensions.share= -U -e "\"$PYTHON\"
\"$TESTDIR/dummyssh\"" ssh://user@dummy/repo repo2
streaming all changes
3 files to transfer, 294 bytes of data
transferred 294 bytes in 0.0 seconds (55.3 KB/sec)
searching for changes
no changes found
$ hg clone --config extensions.share= --config share.pool=../pool -U -e
"\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/repo repo3
(sharing from new pooled repository cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b)
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
new changesets cb9a9f314b8b
searching for changes
no changes found
$ hg clone --stream --config extensions.share= --config share.pool=../pool2
-U -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/repo repo4
(sharing from new pooled repository cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b)
streaming all changes
3 files to transfer, 294 bytes of data
transferred 294 bytes in 0.0 seconds (52.0 KB/sec)
searching for changes
no changes found
searching for changes
no changes found
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list