关于 Mercurial 1.8.2 的问题

发布于 2024-11-03 08:07:24 字数 2977 浏览 4 评论 0原文

我在 Mac OSX 10.6 上使用 Mercurial 1.8.2 时遇到一个大问题 我在很多项目中使用了很长时间。现在我已经大约 4 周没有使用了。今天我尝试使用“hg add”命令,OSX 崩溃了。

所以我用谷歌搜索了一下,发现 OSX 10.5 中有一个错误,我必须在终端首选项中停用 SET LOCAL。

我已经这样做了 - 现在
汞添加
hg commit -m“消息”

有效,但是当我运行时
hg Push

我收到以下错误消息,但没有找到有关
的信息

** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)]
** Mercurial Distributed SCM (version 1.8.2+20110401)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 601, in _dispatch
    cmdpats, cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 406, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 655, in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 609, in checkargs
    return cmdfunc()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 598, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 433, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 3002, in push
    ui.status(_('pushing to %s\n') % url.hidepassword(dest))
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "/Library/Python/2.6/site-packages/mercurial/url.py", line 354, in <module>
    class httpconnection(keepalive.HTTPConnection):
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "/Library/Python/2.6/site-packages/mercurial/keepalive.py", line 361, in <module>
    class HTTPResponse(httplib.HTTPResponse):
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 76, in __getattribute__
    return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'HTTPResponse'

你有什么想法吗?

谢谢, 萨沙

i have a big problem with Mercurial 1.8.2 on Mac OSX 10.6
I used for long time with a lot of projects. Now i haven't used for about 4 weeks. Today i tried and OSX crashed with "hg add" command.

So i googled a little bit and found out, that there was a bug in OSX 10.5 where i have to deactive the SET LOCAL in Terminal Preferences.

I've done so - now
hg add
hg commit -m "message"

works, but when i run
hg push

i get the following error message where i find no information about

** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)]
** Mercurial Distributed SCM (version 1.8.2+20110401)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 601, in _dispatch
    cmdpats, cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 406, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 655, in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 609, in checkargs
    return cmdfunc()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 598, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 433, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 3002, in push
    ui.status(_('pushing to %s\n') % url.hidepassword(dest))
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "/Library/Python/2.6/site-packages/mercurial/url.py", line 354, in <module>
    class httpconnection(keepalive.HTTPConnection):
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "/Library/Python/2.6/site-packages/mercurial/keepalive.py", line 361, in <module>
    class HTTPResponse(httplib.HTTPResponse):
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line 76, in __getattribute__
    return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'HTTPResponse'

Do you have any ideas?

Thanks,
Sascha

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

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

发布评论

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

评论(1

似最初 2024-11-10 08:07:24

我认为你应该完全按照错误消息中的说明进行操作:

** 遇到未知异常,请访问报告
** https://www.mercurial-scm.org/wiki/BugTracker< /p>

I think you should do exactly as said in the error message :

** unknown exception encountered, please report by visiting
** https://www.mercurial-scm.org/wiki/BugTracker

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