Old File : /vobs/code1/dir1/file1.c@@/main/branch1/4 .
New File : /vobs/code1/dir1/file1.c@@/main/branch1/mybranch/1
$ diff -q /vobs/code1/dir1/file1.c@@main/branch1/4 /vobs/code1/dir1/file1.c@@main/branch1/mybranch/1 文件/vobs/code1/dir1/file1.c@@main/branch1/4和/vobs/code1/dir1/file1.c@@/main/branch1/mybranch/1不同
$ post-review --server http://reviewserver.oursite.com --revision-range ='/ vobs / code1 / dir1 / file1.c @@ / main / branch1 / 4:/ vobs / code1 / dir1 / file1。 ç@@ /主/ BRANCH1 / mybranch / 1' 似乎没有任何差异! $
为什么我在文件不同时会收到上述消息?
答案 0 :(得分:1)
Generate unified diffs of all files using option -U of GNU diff command:
diff -U 100000 file1.c@@/main/4 file1.c@@/main/10 > uni_diffs
diff -U 100000 file2.c@@/main/br1/3 file2.c@@/main/branch2/4 >> uni_diffs
diff -U 100000 file3.c@@/main/abc/4 file3.c@@/main/30 >> uni_diffs
....
Note 100000 is passed so that complete file can also be viewed on review board.
Assuming file length is less than 1000000.
Post the above unified diff file to review board :
post-review --diff-filename=uni_diffs ....
迪帕克
答案 1 :(得分:1)
在许多RBTool版本中,ClearCaseClient类中存在错误,函数diff_between_revisions。
postreview.py中的问题部分如下所示:
revision_range = revision_range.split(';')
如果继续使用当前版本的Review Board和RBTools,有两种方法可以解决这个问题:
1)在postreview.py代码中将分号更改为冒号
2)在命令行参数中使用分号作为分隔符。
选择首选解决方案并使用它。 ; - )