Google 代码值错误上的 Mercurial 推送错误
我正在尝试通过推送 Google 代码来学习使用 Mercurial。
我有两个 .hgrc 文件
:一个文件位于 $PROJECT_DIR/.hg/.hrgc
和 $HOME/.hgrc
。我有两个单独的文件,因为我不想将密码放在中央存储库上。
这是 $PROJECT_DIR/.hg/.hrgc
的内容:
[ui]
usermane=Venkat S. Rao <[email protected]>
verbose=true
[paths]
default-push =https:vrao423:gc4yy3vB3mc4@//personal-site423.googlecode.com/hg/us
这是 $HOME/.hgrc
的内容:
[ui]
username= Venkat Rao <[email protected]>
verbose=True
[auth]
project.prefix=https://personal-site423.googlecode.com/hg/
password=###
username=vrao423
对于用户名,我有我的 Gmail ID。
我可以将更改提交到本地存储库,但是当我尝试 hg Push 时,出现此错误。
** unknown exception encountered, details follow ** report bug details to http://mercurial.selenic.com/bts/ ** or [email protected] ** Mercurial Distributed SCM (version 1.4.3) ** Extensions loaded: Traceback (most recent call last): File "/usr/bin/hg", line 27, in mercurial.dispatch.run() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 16, in run sys.exit(dispatch(sys.argv[1:])) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 30, in dispatch return _runcatch(u, args) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 46, in _runcatch return _dispatch(ui, args) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 454, in _dispatch return runcommand(lui, repo, cmd, fullargs, ui, options, d) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 324, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 505, in _runcommand return checkargs() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 459, in checkargs return cmdfunc() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 453, in d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/usr/lib/pymodules/python2.6/mercurial/util.py", line 386, in check return func(*args, **kwargs) File "/usr/lib/pymodules/python2.6/mercurial/commands.py", line 2345, in push other = hg.repository(cmdutil.remoteui(repo, opts), dest) File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 63, in repository repo = _lookup(path).instance(ui, path, create) File "/usr/lib/pymodules/python2.6/mercurial/httprepo.py", line 263, in instance inst.between([(nullid, nullid)]) File "/usr/lib/pymodules/python2.6/mercurial/httprepo.py", line 184, in between d = self.do_read("between", pairs=n) File "/usr/lib/pymodules/python2.6/mercurial/httprepo.py", line 128, in do_read fp = self.do_cmd(cmd, **args) File "/usr/lib/pymodules/python2.6/mercurial/httprepo.py", line 80, in do_cmd resp = self.urlopener.open(urllib2.Request(cu, data, headers)) File "/usr/lib/python2.6/urllib2.py", line 391, in open response = self._open(req, data) File "/usr/lib/python2.6/urllib2.py", line 409, in _open '_open', req) File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib/pymodules/python2.6/mercurial/url.py", line 455, in https_open self.auth = self.pwmgr.readauthtoken(req.get_full_url()) File "/usr/lib/pymodules/python2.6/mercurial/url.py", line 141, in readauthtoken group, setting = key.split('.', 1) ValueError: need more than 1 value to unpack
请帮我。我尝试阅读 hgrc man,但这只是胡言乱语。
谢谢 文卡特
I am trying to learn to use mercurial by pushing onto Google code.
I have two .hgrc files
: One file is located $PROJECT_DIR/.hg/.hrgc
and $HOME/.hgrc
. I have two separate files because I did not want to put the password out on the central repository.
Here is the content of $PROJECT_DIR/.hg/.hrgc
:
[ui]
usermane=Venkat S. Rao <[email protected]>
verbose=true
[paths]
default-push =https:vrao423:gc4yy3vB3mc4@//personal-site423.googlecode.com/hg/us
Here is the content of $HOME/.hgrc
:
[ui]
username= Venkat Rao <[email protected]>
verbose=True
[auth]
project.prefix=https://personal-site423.googlecode.com/hg/
password=###
username=vrao423
For username I have my Gmail id.
I can commit changes to my local repository, but when I try hg push I get this error.
** unknown exception encountered, details follow ** report bug details to http://mercurial.selenic.com/bts/ ** or [email protected] ** Mercurial Distributed SCM (version 1.4.3) ** Extensions loaded: Traceback (most recent call last): File "/usr/bin/hg", line 27, in mercurial.dispatch.run() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 16, in run sys.exit(dispatch(sys.argv[1:])) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 30, in dispatch return _runcatch(u, args) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 46, in _runcatch return _dispatch(ui, args) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 454, in _dispatch return runcommand(lui, repo, cmd, fullargs, ui, options, d) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 324, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 505, in _runcommand return checkargs() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 459, in checkargs return cmdfunc() File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 453, in d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/usr/lib/pymodules/python2.6/mercurial/util.py", line 386, in check return func(*args, **kwargs) File "/usr/lib/pymodules/python2.6/mercurial/commands.py", line 2345, in push other = hg.repository(cmdutil.remoteui(repo, opts), dest) File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 63, in repository repo = _lookup(path).instance(ui, path, create) File "/usr/lib/pymodules/python2.6/mercurial/httprepo.py", line 263, in instance inst.between([(nullid, nullid)]) File "/usr/lib/pymodules/python2.6/mercurial/httprepo.py", line 184, in between d = self.do_read("between", pairs=n) File "/usr/lib/pymodules/python2.6/mercurial/httprepo.py", line 128, in do_read fp = self.do_cmd(cmd, **args) File "/usr/lib/pymodules/python2.6/mercurial/httprepo.py", line 80, in do_cmd resp = self.urlopener.open(urllib2.Request(cu, data, headers)) File "/usr/lib/python2.6/urllib2.py", line 391, in open response = self._open(req, data) File "/usr/lib/python2.6/urllib2.py", line 409, in _open '_open', req) File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib/pymodules/python2.6/mercurial/url.py", line 455, in https_open self.auth = self.pwmgr.readauthtoken(req.get_full_url()) File "/usr/lib/pymodules/python2.6/mercurial/url.py", line 141, in readauthtoken group, setting = key.split('.', 1) ValueError: need more than 1 value to unpack
Please help me. I have tried reading the hgrc man but that is just gibberish.
Thank You
Venkat
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我是一名 Mercurial 开发人员。请在 邮件列表 或在我们的 错误跟踪器。我很想听听您的意见,以便我们可以使手册页变得更好,所以请写信给我们,告诉我们您发现哪一部分是“乱码”。
在这种特殊情况下,问题是您需要编写 auth 部分 像这样:
我将用
googlecode
或类似的东西替换project
。我们当然应该报告一些合理的内容而不是回溯,我可以看到我们已经修复了这个特定的错误Mercurial 1.5 中的。I'm a Mercurial developer. Please report problems with our man page on the mailinglist or on our bugtracker. I would love to hear from you so that we can make the man page better, so please write to us and tell us which part you found to be "gibberish".
In this particular case, the problem is that you need to write your auth section like this:
where I would replace
project
withgooglecode
or something similar. We should of course report something sensible instead of a traceback and I can see that we already fixed this particular bug in Mercurial 1.5.