我在Review Board服务器上配置了一个本地mercurial repo。
我还使用mercurial-reviewboard
扩展程序生成审核请求,该工作正常。
我在查看差异审核请求时遇到问题。
我使用以下工具:
Review Board : 1.6.6
Apache 2.2
Mercurial 1.9
我注意到的一件事是,生成的临时文件最后没有-new
如下所述,文件tmppftuho
存在但tmppftuho-new
不存在
tmppftuho
看起来与源文件完全相同。
以下是堆栈跟踪:
[Errno 2] No such file or directory: 'c:\\windows\\temp\\reviewboard.nq6s0i\\tmppftuho-new'
Traceback (most recent call last):
File "E:\Python27\lib\site-packages\reviewboard\diffviewer\views.py", line 151, in view_diff
interdiffset, highlighting, True)
File "E:\Python27\lib\site-packages\reviewboard\diffviewer\diffutils.py", line 1072, in get_diff_files
large_data=True)
File "E:\Python27\lib\site-packages\djblets\util\misc.py", line 157, in cache_memoize
data = lookup_callable()
File "E:\Python27\lib\site-packages\reviewboard\diffviewer\diffutils.py", line 1071, in <lambda>
enable_syntax_highlighting)),
File "E:\Python27\lib\site-packages\reviewboard\diffviewer\diffutils.py", line 552, in get_chunks
old = get_original_file(filediff)
File "E:\Python27\lib\site-packages\reviewboard\diffviewer\diffutils.py", line 369, in get_original_file
data = patch(filediff.parent_diff, data, filediff.source_file)
File "E:\Python27\lib\site-packages\reviewboard\diffviewer\diffutils.py", line 245, in patch
f = open(newfile, "r")
IOError: [Errno 2] No such file or directory: 'c:\\windows\\temp\\reviewboard.nq6s0i\\tmppftuho-new'
有什么建议吗? 提前致谢