【问题标题】:Mercurial fails while commiting/updating/etc. using Mercuriual+TrueCrypt+MAC提交/更新/等时的 Mercurial 文件。使用 Mercurial+TrueCrypt+MAC
【发布时间】:2010-05-19 05:26:32
【问题描述】:

在尝试在位于 TrueCrypt 分区上的项目上使用 Mercurial 时,我总是收到如下错误:

** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 1.5.2+20100502)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 27, 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 30, in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 50, in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 470, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 340, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 521, in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 475, in checkargs
    return cmdfunc()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 469, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 401, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 3332, in update
    return hg.update(repo, rev)
  File "/Library/Python/2.6/site-packages/mercurial/hg.py", line 362, in update
    stats = _merge.update(repo, node, False, False, None)
  File "/Library/Python/2.6/site-packages/mercurial/merge.py", line 495, in update
    _checkunknown(wc, p2)
  File "/Library/Python/2.6/site-packages/mercurial/merge.py", line 77, in _checkunknown
    for f in wctx.unknown():
  File "/Library/Python/2.6/site-packages/mercurial/context.py", line 660, in unknown
    return self._status[4]
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 156, in __get__
    result = self.func(obj)
  File "/Library/Python/2.6/site-packages/mercurial/context.py", line 622, in _status
    return self._repo.status(unknown=True)
  File "/Library/Python/2.6/site-packages/mercurial/localrepo.py", line 1023, in status
    if (f not in ctx1 or ctx2.flags(f) != ctx1.flags(f)
  File "/Library/Python/2.6/site-packages/mercurial/context.py", line 694, in flags
    flag = findflag(self._parents[0])
  File "/Library/Python/2.6/site-packages/mercurial/context.py", line 690, in findflag
    return ff(path)
  File "/Library/Python/2.6/site-packages/mercurial/dirstate.py", line 145, in f
    if 'x' in fallback(x):
TypeError: argument of type 'NoneType' is not iterable

值得一提的是,如果项目不在 TrueCrypt 分区上,Mercurial 可以完美运行。

配置: macOS X 10.6.3 Mercurial 分布式 SCM(版本 1.5.2+20100502) Python 2.6.5

你们中是否有任何慷慨的人能够帮助我? :)

【问题讨论】:

  • 嗯...不要使用 TrueCrypt 分区?也不知道这是否相关,但g-loaded.eu/2006/11/05/truecrypt-on-2618-kernels。如果您没有什么可隐藏的,为什么还要使用加密? ;)
  • 没什么可隐藏的?贵公司的代码库怎么样。在某些情况下,请考虑丢失您的笔记本电脑可能会导致 数百万 美元的损失。 Truecrypted:零。 Truecrypting 编码项目在商业环境中具有荒谬的意义。

标签: python mercurial truecrypt


【解决方案1】:

这个bug是在1.5.2添加的(很抱歉),我们很快就发布了1.5.3,请使用它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-07-27
    • 2011-03-07
    • 2012-01-01
    • 1970-01-01
    • 2013-04-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多