gpt4 book ai didi

mercurial - 为什么 "hg push"比 .hg 大这么多?

转载 作者:行者123 更新时间:2023-12-04 11:43:39 28 4
gpt4 key购买 nike

我的项目.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

最佳答案

这是一个已知的python错误。由于python http库的工作方式,它首先发送数据,服务器回复它需要身份验证,然后重新发送数据。

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

[ui]
usehttp2 = true

关于mercurial - 为什么 "hg push"比 .hg 大这么多?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6540108/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com