2016-02-26 96 views
0

我想发布我在CVS中提交的文件的审核请求,目前我有两个文件与他们的修订版。我尝试了几乎所有可能的组合,提到@https://www.reviewboard.org/docs/rbtools/0.7/rbt/commands/post/#posting-paths 但他们都没有工作。样品均低于:将CVS中提交文件的审核请求发送到审核委员会

rbt post -d src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.1:src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.2 ui/Accounting/AP/Reports/[email protected]@1.1.4.6.32.1.34.1:ui/Accounting/AP/Reports/[email protected]@1.1.4.6.32.1.34.1.2.1 

rbt post -d src/com/sibisoft/northstar/acc/ap/reports/ApReportUtil.java#1.1.4.27.4.2.12.8.2.3.4.1.4.1,#1.1.4.27.4.2.12.8.2.3.4.1.4.2 ui/Accounting/AP/Reports/rptCheckReconciliation.jsp#1.1.4.6.32.1.34.1,#1.1.4.6.32.1.34.1.2.1 

rbt post -d -I src/com/sibisoft/northstar/acc/ap/reports/[email protected]#1.1.4.27.4.2.12.8.2.3.4.1.4.1,@#1.1.4.27.4.2.12.8.2.3.4.1.4.2 -I ui/Accounting/AP/Reports/[email protected]#1.1.4.6.32.1.34.1,@#1.1.4.6.32.1.34.1.2.1 

rbt post -d src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.1 src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.2 ui/Accounting/AP/Reports/[email protected]@1.1.4.6.32.1.34.1 ui/Accounting/AP/Reports/[email protected]@1.1.4.6.32.1.34.1.2.1 

rbt post -d src/com/sibisoft/northstar/acc/ap/reports/[email protected]#1.1.4.27.4.2.12.8.2.3.4.1.4.1,@#1.1.4.27.4.2.12.8.2.3.4.1.4.2 ui/Accounting/AP/Reports/[email protected]#1.1.4.6.32.1.34.1,@#1.1.4.6.32.1.34.1.2.1 

我得到任何

rbtools.clients.errors.TooManyRevisionsError: Too many revisions specified 

错误或

rbtools.commands.CommandError: Error validating diff 
The specified diff file is empty. (HTTP 400, API Error 219) 

我有2个文件,它们的痕迹都低于:

/home/cvs/src/ns/src/com/sibisoft/northstar/acc/ap/reports/Attic/ApReportUtil.java,v <-- src/com/sibisoft/northstar/acc/ap/reports/ApReportUtil.java 
new revision: 1.1.4.27.4.2.12.8.2.3.4.1.4.2; previous revision: 1.1.4.27.4.2.12.8.2.3.4.1.4.1 

/home/cvs/src/ns/ui/Accounting/AP/Reports/Attic/rptCheckReconciliation.jsp,v <-- ui/Accounting/AP/Reports/rptCheckReconciliation.jsp 
new revision: 1.1.4.6.32.1.34.1.2.1; previous revision: 1.1.4.6.32.1.34.1 

任何帮助会非常感激。

更新: @unreturnedURL:我试过但得到以下错误。

D:\IntelliJ_workspace\52B7>rbt post -d -I src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.1:src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.2 
>>> RBTools 0.7.5 alpha 0 (dev) 
>>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] 
>>> Running on Windows-8-6.2.9200 
>>> Home = C:\Users\Waqar Ali Khan\AppData\Roaming 
>>> Current directory = D:\IntelliJ_workspace\52B7 
>>> Checking for a Subversion repository... 
>>> Unable to execute "svn help": skipping SVN 
>>> Checking for a Git repository... 
>>> Running: git rev-parse --git-dir 
>>> Command exited with rc 128: ['git', 'rev-parse', '--git-dir'] 
fatal: Not a git repository (or any of the parent directories): .git 
--- 
>>> Checking for a Mercurial repository... 
>>> Unable to execute "hg --help": skipping Mercurial 
>>> Checking for a CVS repository... 
>>> repository info: Path: CVS-SERVER:/home/cvs/src, Base path: None, Supports changesets: False 
>>> Making HTTP GET request to http://example.com/api/ 
>>> Running: cvs diff -uN src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.1:src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.2 
>>> Command exited with rc 1: ['cvs', 'diff', '-uN', 'src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.1:src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.2'] 
>>> Making HTTP GET request to http://example.com/api/validation/diffs/ 
>>> Cached response for HTTP GET http://example.com/api/validation/diffs/ expired and was modified 
>>> Making HTTP POST request to http://example.com/api/validation/diffs/ 
>>> Got API Error 219 (HTTP code 400): The specified diff file is empty. 
>>> Error data: {u'stat': u'fail', u'err': {u'msg': u'The specified diff file is empty.', u'code': 219}} 
Traceback (most recent call last): 
    File "C:\Program Files (x86)\RBTools\bin\..\Python27\Scripts\rbt-script.py", line 8, in <module> 
    load_entry_point('RBTools==0.7.5alpha0', 'console_scripts', 'rbt')() 
    File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.5alpha0-py2.7.egg\rbtools\commands\main.py", line 133, in main 
    command.run_from_argv([RB_MAIN, command_name] + args) 
    File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.5alpha0-py2.7.egg\rbtools\commands\__init__.py", line 622, in run_from_argv 
    exit_code = self.main(*args) or 0 
    File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.5alpha0-py2.7.egg\rbtools\commands\post.py", line 754, in main 
    (msg_prefix, e)) 
rbtools.commands.CommandError: Error validating diff 

The specified diff file is empty. (HTTP 400, API Error 219) 
+0

哇,这是很多嵌套分支。 –

回答

0

您提到的链接用于发布针对Perforce未署名代码的差异。请试试这个:https://www.reviewboard.org/docs/rbtools/0.7/rbt/commands/post/#posting-committed-code

尝试使用-I选项发布单个文件,例如,

rbt post -d -I src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.1:src/com/sibisoft/northstar/acc/ap/reports/[email protected]@1.1.4.27.4.2.12.8.2.3.4.1.4.2 

如果它不起作用,请发布完整的调试日志。如果有效,请在每个修订范围之前尝试使用-I这两个文件。

+0

我试过但出现错误,我更新了我的问题,请查看它的调试信息。 –

+0

该日志中的命令看起来看起来不正确: 'cvs diff -uN src/com/sibisoft/northstar/acc/ap/reports/ApReportUtil.java @@ 1.1.4.27.4.2.12.8.2 .3.4.1.4.1:SRC/COM/sibisoft /北极星/ ACC/AP /报告/ ApReportUtil.java @@ 1.1.4.27. 4.2.12.8.2.3.4.1.4.2'。 试试这两个: 'rbt post -d -I src/com/sibisoft/northstar/acc/ap/reports/ApReportUtil.java 1.1.4.27.4.2.12.8.2 .3.4.1.4.1 1.1.4.27 .4.2.12.8.2 .3.4.1.4.2' 和 'rbt post -d -I src/com/sibisoft/northstar/acc/ap/reports/ApReportUtil.java 1.1.4.27.4.2.12.8.2 .3.4.1.4.1:1.1.4.27.4.2.12.8.2 .3.4.1.4.2' – yeniv