2013-12-08 24 views
1
Old File : /vobs/code1/dir1/[email protected]@/main/branch1/4 . 
New File : /vobs/code1/dir1/[email protected]@/main/branch1/mybranch/1 

$ DIFF -q /vobs/code1/dir1/[email protected]@/main/branch1/4 /vobs/code1/dir1/[email protected] @/main/branch1/mybranch/1 文件/vobs/code1/dir1/[email protected]@/main/branch1/4和/vobs/code1/dir1/[email protected]@/main/branch1/mybranch/1不同如何發佈審查的審查委員會ClearCase的多個文件

$ post-review --server http://reviewserver.oursite.com --revision-range ='/ vobs/code1/dir1/file1.c @@/main/branch1/4:/vobs/code1/dir1/[email protected] @/main/branch1/mybranch/1' 似乎沒有任何差異! $

爲什麼我在文件有差異時收到上面的消息?

回答

1
Generate unified diffs of all files using option -U of GNU diff command: 
    diff -U 100000 [email protected]@/main/4  [email protected]@/main/10   > uni_diffs 
    diff -U 100000 [email protected]@/main/br1/3 [email protected]@/main/branch2/4 >> uni_diffs 
    diff -U 100000 [email protected]@/main/abc/4 [email protected]@/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

在許多RBTool版本中存在類ClearCaseClient,功能diff_between_revisions一個錯誤。

在postreview.py

有爭議的部分是這樣的:

1)改變分號冒號在:

revision_range = revision_range.split(';') 

兩種方法如果與審查委員會的當前版本和RBTools停留處理這個問題postreview.py代碼

2)在命令行參數中使用分號作爲分隔符。

選擇首選解決方案並使用它。 ;-)