我在尝试将git存储库转换为mercurial时出错。当我运行:将git转换为mercurial的问题
hg convert gitdir hgdir
我得到这个:
UnboundLocalError: local variable 'tz' referenced before assignment
背景:我刚安装TortoiseHg并启用了转换扩展。
它看起来像nmercurial转换是有问题的git存储库。我一直在使用git-gui(在windows下)管理git仓库。
下面是完整的输出:
scanning source...
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or [email protected]
** Mercurial Distributed SCM (version 1.4.1)
** Extensions loaded: extdiff, convert
Traceback (most recent call last):
File "hg", line 36, in <module>
File "mercurial\dispatch.pyo", line 16, in run
File "mercurial\dispatch.pyo", line 30, in dispatch
File "mercurial\dispatch.pyo", line 46, in _runcatch
File "mercurial\dispatch.pyo", line 449, in _dispatch
File "mercurial\dispatch.pyo", line 319, in runcommand
File "mercurial\dispatch.pyo", line 500, in _runcommand
File "mercurial\dispatch.pyo", line 454, in checkargs
File "mercurial\dispatch.pyo", line 448, in <lambda>
File "mercurial\util.pyo", line 386, in check
File "hgext\convert\__init__.pyo", line 229, in convert
File "hgext\convert\convcmd.pyo", line 398, in convert
File "hgext\convert\convcmd.pyo", line 312, in convert
File "hgext\convert\convcmd.pyo", line 109, in walktree
File "hgext\convert\convcmd.pyo", line 267, in cachecommit
File "hgext\convert\git.pyo", line 112, in getcommit
UnboundLocalError: local variable 'tz' referenced before assignment
讨论继续在这里(它确实属于它):http://markmail.org/thread/yazxa5la524umbnf – 2009-12-28 20:38:29
那里没有答案,至少还没有答案。你知道如何解决这个问题吗? – jdigital 2009-12-28 20:41:02
我查看了有问题的代码,但我不知道为什么'tz'变量最终被解除绑定。我希望你能像帕特里克建议的那样发布版本库,这样我们可以更好地帮助你。 – 2009-12-28 21:12:51