diff2html.py“simplediff not found”但我知道simplediff模块已安装

时间:2015-06-01 23:17:37

标签: python svn diff

我正在尝试使用diff2html.py从svn diff文件创建一个html文件,但是当我运行它echo $?时,我收到一条错误消息“info:simplediff module not found,only linediff is available info:可以在overflow下载“我已经下载了simplediff,我知道它存在,因为我已经0后跟var cars = []; for(var motor in transportation.results) { cars.push({ Make: motor.make, Model: motor.model, Year: motor.year, Mileage: motor.mileage }); } var user = new User({ Email: email, Firstname: firstname, Lastname: lastname, Cars = cars }); user.save(function (err) { if (!err) console.log('Success!'); }); 并返回<div class="onoffswitch"><input '+switchclick+' type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" '+vdata+' ><label class="onoffswitch-label" for="myonoffswitch"><span class="onoffswitch-inner"></span><span class="onoffswitch-switch"></span> </label></div> ,这表明我有simplediff模块。有关如何运行diff2html.py的任何建议吗?

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,我设法工作的方式是创建.diff文件,如下所示(注意 -u ):

diff -u file1 file2 > mydifffile.diff

然后将mydifffile.diff提供给diff2html.py,如下所示:

cat mydifffile.diff | diff2html > myhtmlfile.html

请注意,diff2html已添加到路径