Reviewboard错误中止:在存储库中找不到该文件(207)

时间:2016-02-17 10:35:23

标签: mercurial review-board

无法在审核中看到差异。发布评论时看到以下错误。但在审查板门户网站,我可以看到消息。但是看不出差异。

[dkanagaraj@localhost hid-MS-PoC]$ hg postreview tip --debug
Parent is d63949c66c7a
Remote parent is None

=== Diff from parent to rev ===
diff -r d63949c66c7a0302f8f7495f5c1b62bfb2c0e92c -r 16487c0824fdd5bd124e3266a1055be321b13f37 RFP/hid-MS-PoC/rundev.bat
--- a/RFP/hid-MS-PoC/rundev.bat Mon Feb 15 14:59:19 2016 -0500
+++ b/RFP/hid-MS-PoC/rundev.bat Mon Feb 15 16:22:21 2016 -0500
@@ -1,3 +1,3 @@
-
+@REM
start cmd /k "cd portal& call rundev.bat"
start cmd /k "cd rfp& call rundev.bat"  


Changeset 72:16487c0824fd
---------------------------
changed rundev.bat for reviewboard

reviewboard:    http://10.129.47.15/reviews/

Looking for '10.129.47.15 /reviews/' cookie in /home/dkanagaraj/.post-review-cookies.txt
Loaded valid cookie -- no login required
Repositories:
[2] chennai_sis
repository id: 2
abort: The file was not found in the repository. (207)
stat: fail
file: RFP/hid-MS-PoC/rundev.bat
revision: d63949c66c7a0302f8f7495f5c1b62bfb2c0e92c

以下是在调试模式下启用的评论板日志

2016-02-15 21:25:03,062 - INFO -  - Reloading logging settings
2016-02-15 21:25:03,067 - DEBUG -  - Cache miss for key jsi18n-djangojs-reviewboard_djblets-en-1449235847.
2016-02-15 21:25:03,255 - INFO -  - Reloading logging settings
2016-02-15 21:26:40,118 - INFO -  - Reloading logging settings
2016-02-15 21:26:40,136 - INFO -  - Reloading logging settings
2016-02-15 21:26:40,174 - INFO -  - Reloading logging settings
2016-02-15 21:26:40,227 - INFO -  - Reloading logging settings
2016-02-15 21:26:40,245 - DEBUG -  - DiffParser.parse: Beginning parse of diff, size = 357
2016-02-15 21:26:40,245 - DEBUG -  - DiffParser.parse: Finished parsing diff.
2016-02-15 21:26:40,297 - DEBUG -  - Using rbssh for mercurial

2 个答案:

答案 0 :(得分:1)

这发生在我身上,我花了很多年才找出原因。有什么不同之处在于我的家.hgrc文件:

[mq]
secret = true

每当我推送一个补丁时,这就使补丁的提交阶段成为秘密"。这阻止了它出现在hg out以及破坏审查委员会。

从我的.hgrc中取出线条使其再次运作。您可能必须使用hg phase或通过qpopping和qpushing来更改已推送的修补程序的阶段。

答案 1 :(得分:-1)

#include <iostream> using namespace std; int sal_sk (int sal){ // If sal is a composite figure, then true, if its not then false. for (int i = 2; i <= sal; i++){ if(sal%i==0) return true;} return false; } int lkd(int a,int b){ // Checks the gcd int c; while(b > 0) { c = b; b = a % b; a = c; } return a; } int main(){ int ok; do{ int n;//Number of elements int*a; // int sal; cout<<"Put in the number of elements"<<endl; std::cin >> n; cout<<"Input"<<n<<"elements"<<endl; std::cin >> *a; int *array = new int[*a]; int rez = a[0]; for(int i=1; i<n; i++) { if(sal_sk(a[i]==true)) rez = lkd(rez, a[i]); delete [] array; } 可以通过添加长差异来解决。