我正在尝试使用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的任何建议吗?
答案 0 :(得分:0)
我遇到了同样的问题,我设法工作的方式是创建.diff
文件,如下所示(注意 -u ):
diff -u file1 file2 > mydifffile.diff
然后将mydifffile.diff
提供给diff2html.py
,如下所示:
cat mydifffile.diff | diff2html > myhtmlfile.html
请注意,diff2html
已添加到路径