如何配置 Mercurial 以使用 OSX 10.4 进行推送

发布于 2024-11-11 05:28:38 字数 2050 浏览 2 评论 0原文

当尝试将更改推送到 bitbucket.org 时,我收到错误“中止:授权失败”。我已将 ~//.hgrc 文件配置为以下内容,

[web]
cacerts = /etc/hg-ca-roots.pem
allow_push = *
push_ssl = false

我知道我的登录凭据是正确的,因为它们在 bitbucket.org 上完美运行。我能够很好地提取内容,甚至可以毫无问题地使用 $ hg 传出命令。我做错了什么?

computer:~/desktop/sinebase chris$ hg push --debug
pushing to https://bitbucket.org/
using https://bitbucket.org/
sending between command
bitbucket.org certificate successfully verified
sending capabilities command
capabilities: changegroupsubset stream lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN branchmap
sending heads command
searching for changes
common changesets up to fa4942e93eea
sending branchmap command
1 changesets found
list of changesets:
5fbc99565b8647652145fcd6ac8c48b900418701
bundling: 0 changesets
bundling: 0 changesets
bundling: 0 changesets
bundling: 1 changesets
bundling: 0/1 manifests (0.00%)
bundling: 0/1 manifests (0.00%)
bundling: 0/1 manifests (0.00%)
bundling: 1/1 manifests (100.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
sending unbundle command
sending 375 bytes
sending: 0 kb
sending: 0 kb
http authorization required
realm: Bitbucket.org HTTP
user: ******
password: 
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 0 kb
sending: 0 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 2 kb
sending: 2 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 2 kb
sending: 2 kb
abort: authorization failed

When attempting to push changes to bitbucket.org I receive an error "abort: authorization failed". I have configured my ~//.hgrc file to the following

[web]
cacerts = /etc/hg-ca-roots.pem
allow_push = *
push_ssl = false

I know my login credential are correct because they work perfectly on bitbucket.org. I am able to pull content just fine and can even use the $ hg outgoing command with no problems. What am I doing wrong?

computer:~/desktop/sinebase chris$ hg push --debug
pushing to https://bitbucket.org/
using https://bitbucket.org/
sending between command
bitbucket.org certificate successfully verified
sending capabilities command
capabilities: changegroupsubset stream lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN branchmap
sending heads command
searching for changes
common changesets up to fa4942e93eea
sending branchmap command
1 changesets found
list of changesets:
5fbc99565b8647652145fcd6ac8c48b900418701
bundling: 0 changesets
bundling: 0 changesets
bundling: 0 changesets
bundling: 1 changesets
bundling: 0/1 manifests (0.00%)
bundling: 0/1 manifests (0.00%)
bundling: 0/1 manifests (0.00%)
bundling: 1/1 manifests (100.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
sending unbundle command
sending 375 bytes
sending: 0 kb
sending: 0 kb
http authorization required
realm: Bitbucket.org HTTP
user: ******
password: 
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 0 kb
sending: 0 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 2 kb
sending: 2 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 2 kb
sending: 2 kb
abort: authorization failed

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傾旎 2024-11-18 05:28:38

如果它不是私人存储库,您就可以在不进行身份验证的情况下拉取并传出,因此您的凭据仍然可能是错误的。下次尝试使用 --debug

If it's not a private repo you'd be able to pull and do outgoing without authenticating, so it's still possible your credentials are wrong. Try using --debug next time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文