为什么"hg推"比.hg大得多?

Gil*_*ili 7 mercurial

我的项目.hg目录是40MB.如果我hg push --verbose --debug是一个空的远程存储库,我看到它发送了数百MB.额外的开销来自哪里?

更新:hg bundle -a生成35MB文件.这是我看到的输出的精简版本:

pushing to https://jace.googlecode.com/hg/
using https://jace.googlecode.com/hg/
sending between command
using auth.default.* for authentication
jace.googlecode.com certificate successfully verified
sending capabilities command
using auth.default.* for authentication
capabilities: branchmap lookup unbundle=HG10UN,HG10UGZ,HG10BZ changegroupsubset
sending heads command
using auth.default.* for authentication
searching for changes
common changesets up to 71818a195bf5
sending branchmap command
[...]
bundling: <filenames>
sending unbundle command
sending xxx bytes
[...]
sending: xxx/xxx kb
Run Code Online (Sandbox Code Playgroud)

ton*_*nfa 7

这是一个已知的python bug.由于python http库的工作方式,它首先发送数据,服务器回复它需要auth,然后重新发送数据.

使用最近的mercurial(从1.9开始),您可以使用另一个http库.只需在hgrc中添加以下内容:

[ui]
usehttp2 = true
Run Code Online (Sandbox Code Playgroud)