Re: About the relationship between ReviewBoard Server and CVS
Hi, You will need cvs on the server, definitely. The 1.1 alpha series won't let you create a CVS repository without having it. You'll also need it on the client running post-review. The base path should be None in this case. It's really only needed for Subversion. Can you show me the Repository entries you have configured in the administration UI in Review Board? Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, The detailed error info is: - [jo...@dev2 test]$ post-review --debug --username=Johnl1 -- password=Johnl1 myTestCode.c svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myTestCode.c Looking for '192.168.3.20 /' cookie in /data1/John1/.post-review-cookies.txt Couldn't load cookie file: '/data1/John1/.post-review-cookies.txt' does not look like a Netscape format cookies file == Review Board Login Required Enter username and password for Review Board at http://192.168.3.20:8080/ Logging in with username John1 HTTP POSTing to http://192.168.3.20:8080/api/json/accounts/login/: {'username': 'John1', 'password': '**'} Logged in. Attempting to create review request for None HTTP POSTing to http://192.168.3.20:8080/api/json/reviewrequests/new/: {'repository_path': 'cvs_gz:/export/home/cvsroot'} Error creating review request: The repository path specified is not in the list of known repositories (code 206) - My question is : Why the Base path value of mine is None? does it have relationship with my problem code 206? if it does, Then how to set this Base path in Review Board? I have not installed CVS or SVN, I am using an account on an exist CVS server. Must I have to install a independent CVS for the ReviewBoard? Best Regards! On 12月14日, 下午5时53分, Christian Hammond chip...@chipx86.com wrote: Hi, The Path or Mirror Path for the Repository entry in the admin UI in Review Board must be exactly what post-review is trying to report. So, in your case, it should be cvs_gz/export/home/cvsoot. I'm hoping to add fuzzy matching in the future (so as to make it possible to use aliases for domains, be more flexible with IP addresses and usernames, etc.), but for now it must be an exact match. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, This problem has been resolved; in the .reviewboardrc , I set the REVIEWBOARD_URL ashttp://192.168.3.20:8080/reviewboard;after I delete the reviewboard ,login is successful now. But I stil can not use RB yet, Error info: Error creating review request: The repository path specified is not in the list of known repositories (code 206); I found my previous Repository setting is the parent dir of actual Repository dir. So I have reset the Repository path on web UI: :pserver:myn...@192.168.3.151:/export/home/cvsroot/test But still, The info is : {'repository_path': 'cvs_gz:/export/home/ cvsroot'} the cvs_gz value is not changed at all, Why? Best Regards! On Dec 12, 5:25 pm, Christian Hammond chip...@chipx86.com wrote: The .post-review-cookies.txt file is where the HTTP cookie with the authentication token is stored. This prevents needing to log in after the first post-review (generally) read more If you go tohttp://192.168.3.20:8080/reviewboard/api/json/inyour browser, what do you see? The two paths you saw should be correct (though, there shouldn't be a period at the end). One is the page you go to in your browser for logging in with the web UI. The other is the one that tools like post-review can call to log in programatically. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/11 JohnHenry qhlonl...@163.com more detailed infomation from debug(data) in RBTools-02.beta2- py2.5.egg, process_json function: svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myUCMobile.c reviewboard.jpg Looking for '192.168.2.20 /reviewboard/' cookie in /data/John1/.post-review-cookies.txt Couldn't load cookie file: [Errno 2] No such file or directory: '/data/John1/.post-review-cookies.txt' == Review Board Login Required Enter username and password for Review Board at http://192.168.3.20:8080/reviewboard/ Logging in with username John1 HTTP POSTing to
Re: About the relationship between ReviewBoard Server and CVS
OK, I am using ReviewBoardV1.05 My Repository setting on Administrator UI is as follows: Name: NewProductCode Path: :perver:jo...@192.168.3.151:/export/home/ cvsroot Mirror Path: /cvs_gz/export/home/cvsroot Repository Type: CVS Username: myCVS_account Password: myCVS_password And, The machine of ReviewBoardServer is 192.168.3.20, Which had installed cvs client but no CVS server(as you can see ,server is on the 192.168.3.151 machine),That is all. Thanks for your suggesion. Best Regards! On Dec 15, 5:35 am, Christian Hammond chip...@chipx86.com wrote: Hi,... read more You will need cvs on the server, definitely. The 1.1 alpha series won't let you create a CVS repository without having it. You'll also need it on the client running post-review. The base path should be None in this case. It's really only needed for Subversion. Can you show me the Repository entries you have configured in the administration UI in Review Board? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, The detailed error info is: - [jo...@dev2 test]$ post-review --debug --username=Johnl1 -- password=Johnl1 myTestCode.c svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myTestCode.c Looking for '192.168.3.20 /' cookie in /data1/John1/.post-review-cookies.txt Couldn't load cookie file: '/data1/John1/.post-review-cookies.txt' does not look like a Netscape format cookies file == Review Board Login Required Enter username and password for Review Board athttp://192.168.3.20:8080/ Logging in with username John1 HTTP POSTing tohttp://192.168.3.20:8080/api/json/accounts/login/: {'username': 'John1', 'password': '**'} Logged in. Attempting to create review request for None HTTP POSTing tohttp://192.168.3.20:8080/api/json/reviewrequests/new/: {'repository_path': 'cvs_gz:/export/home/cvsroot'} Error creating review request: The repository path specified is not in the list of known repositories (code 206) -- My question is : Why the Base path value of mine is None? does it have relationship with my problem code 206? if it does, Then how to set this Base path in Review Board? I have not installed CVS or SVN, I am using an account on an exist CVS server. Must I have to install a independent CVS for the ReviewBoard? Best Regards! On 12月14日, 下午5时53分, Christian Hammond chip...@chipx86.com wrote: Hi, The Path or Mirror Path for the Repository entry in the admin UI in Review Board must be exactly what post-review is trying to report. So, in your case, it should be cvs_gz/export/home/cvsoot. I'm hoping to add fuzzy matching in the future (so as to make it possible to use aliases for domains, be more flexible with IP addresses and usernames, etc.), but for now it must be an exact match. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, This problem has been resolved; in the .reviewboardrc , I set the REVIEWBOARD_URL ashttp://192.168.3.20:8080/reviewboard;afterI delete the reviewboard ,login is successful now. But I stil can not use RB yet, Error info: Error creating review request: The repository path specified is not in the list of known repositories (code 206); I found my previous Repository setting is the parent dir of actual Repository dir. So I have reset the Repository path on web UI: :pserver:myn...@192.168.3.151:/export/home/cvsroot/test But still, The info is : {'repository_path': 'cvs_gz:/export/home/ cvsroot'} the cvs_gz value is not changed at all, Why? Best Regards! On Dec 12, 5:25 pm, Christian Hammond chip...@chipx86.com wrote: The .post-review-cookies.txt file is where the HTTP cookie with the authentication token is stored. This prevents needing to log in after the first post-review (generally) read more If you go tohttp://192.168.3.20:8080/reviewboard/api/json/inyour browser, what do you see? The two paths you saw should be correct (though, there shouldn't be a period at the end). One is the page you go to in your browser for logging in with the web UI. The other is the one that tools like post-review can call to log in programatically. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/11
Re: About the relationship between ReviewBoard Server and CVS
With your help, I can use WebUI pre-commit review now. But why the post-review can't find Base Path of repository? Regards! On Dec 15, 5:35 am, Christian Hammond chip...@chipx86.com wrote: Hi,... read more You will need cvs on the server, definitely. The 1.1 alpha series won't let you create a CVS repository without having it. You'll also need it on the client running post-review. The base path should be None in this case. It's really only needed for Subversion. Can you show me the Repository entries you have configured in the administration UI in Review Board? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, The detailed error info is: - [jo...@dev2 test]$ post-review --debug --username=Johnl1 -- password=Johnl1 myTestCode.c svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myTestCode.c Looking for '192.168.3.20 /' cookie in /data1/John1/.post-review-cookies.txt Couldn't load cookie file: '/data1/John1/.post-review-cookies.txt' does not look like a Netscape format cookies file == Review Board Login Required Enter username and password for Review Board athttp://192.168.3.20:8080/ Logging in with username John1 HTTP POSTing tohttp://192.168.3.20:8080/api/json/accounts/login/: {'username': 'John1', 'password': '**'} Logged in. Attempting to create review request for None HTTP POSTing tohttp://192.168.3.20:8080/api/json/reviewrequests/new/: {'repository_path': 'cvs_gz:/export/home/cvsroot'} Error creating review request: The repository path specified is not in the list of known repositories (code 206) -- My question is : Why the Base path value of mine is None? does it have relationship with my problem code 206? if it does, Then how to set this Base path in Review Board? I have not installed CVS or SVN, I am using an account on an exist CVS server. Must I have to install a independent CVS for the ReviewBoard? Best Regards! On 12月14日, 下午5时53分, Christian Hammond chip...@chipx86.com wrote: Hi, The Path or Mirror Path for the Repository entry in the admin UI in Review Board must be exactly what post-review is trying to report. So, in your case, it should be cvs_gz/export/home/cvsoot. I'm hoping to add fuzzy matching in the future (so as to make it possible to use aliases for domains, be more flexible with IP addresses and usernames, etc.), but for now it must be an exact match. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, This problem has been resolved; in the .reviewboardrc , I set the REVIEWBOARD_URL ashttp://192.168.3.20:8080/reviewboard;afterI delete the reviewboard ,login is successful now. But I stil can not use RB yet, Error info: Error creating review request: The repository path specified is not in the list of known repositories (code 206); I found my previous Repository setting is the parent dir of actual Repository dir. So I have reset the Repository path on web UI: :pserver:myn...@192.168.3.151:/export/home/cvsroot/test But still, The info is : {'repository_path': 'cvs_gz:/export/home/ cvsroot'} the cvs_gz value is not changed at all, Why? Best Regards! On Dec 12, 5:25 pm, Christian Hammond chip...@chipx86.com wrote: The .post-review-cookies.txt file is where the HTTP cookie with the authentication token is stored. This prevents needing to log in after the first post-review (generally) read more If you go tohttp://192.168.3.20:8080/reviewboard/api/json/inyour browser, what do you see? The two paths you saw should be correct (though, there shouldn't be a period at the end). One is the page you go to in your browser for logging in with the web UI. The other is the one that tools like post-review can call to log in programatically. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/11 JohnHenry qhlonl...@163.com more detailed infomation from debug(data) in RBTools-02.beta2- py2.5.egg, process_json function: svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myUCMobile.c reviewboard.jpg Looking for '192.168.2.20 /reviewboard/' cookie in /data/John1/.post-review-cookies.txt Couldn't load cookie file: [Errno 2] No such
Re: About the relationship between ReviewBoard Server and CVS
Another problem is When I am using CVS repository, the debug info report is : svn info On Dec 15, 5:35 am, Christian Hammond chip...@chipx86.com wrote: Hi,... read more You will need cvs on the server, definitely. The 1.1 alpha series won't let you create a CVS repository without having it. You'll also need it on the client running post-review. The base path should be None in this case. It's really only needed for Subversion. Can you show me the Repository entries you have configured in the administration UI in Review Board? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, The detailed error info is: - [jo...@dev2 test]$ post-review --debug --username=Johnl1 -- password=Johnl1 myTestCode.c svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myTestCode.c Looking for '192.168.3.20 /' cookie in /data1/John1/.post-review-cookies.txt Couldn't load cookie file: '/data1/John1/.post-review-cookies.txt' does not look like a Netscape format cookies file == Review Board Login Required Enter username and password for Review Board athttp://192.168.3.20:8080/ Logging in with username John1 HTTP POSTing tohttp://192.168.3.20:8080/api/json/accounts/login/: {'username': 'John1', 'password': '**'} Logged in. Attempting to create review request for None HTTP POSTing tohttp://192.168.3.20:8080/api/json/reviewrequests/new/: {'repository_path': 'cvs_gz:/export/home/cvsroot'} Error creating review request: The repository path specified is not in the list of known repositories (code 206) -- My question is : Why the Base path value of mine is None? does it have relationship with my problem code 206? if it does, Then how to set this Base path in Review Board? I have not installed CVS or SVN, I am using an account on an exist CVS server. Must I have to install a independent CVS for the ReviewBoard? Best Regards! On 12月14日, 下午5时53分, Christian Hammond chip...@chipx86.com wrote: Hi, The Path or Mirror Path for the Repository entry in the admin UI in Review Board must be exactly what post-review is trying to report. So, in your case, it should be cvs_gz/export/home/cvsoot. I'm hoping to add fuzzy matching in the future (so as to make it possible to use aliases for domains, be more flexible with IP addresses and usernames, etc.), but for now it must be an exact match. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, This problem has been resolved; in the .reviewboardrc , I set the REVIEWBOARD_URL ashttp://192.168.3.20:8080/reviewboard;afterI delete the reviewboard ,login is successful now. But I stil can not use RB yet, Error info: Error creating review request: The repository path specified is not in the list of known repositories (code 206); I found my previous Repository setting is the parent dir of actual Repository dir. So I have reset the Repository path on web UI: :pserver:myn...@192.168.3.151:/export/home/cvsroot/test But still, The info is : {'repository_path': 'cvs_gz:/export/home/ cvsroot'} the cvs_gz value is not changed at all, Why? Best Regards! On Dec 12, 5:25 pm, Christian Hammond chip...@chipx86.com wrote: The .post-review-cookies.txt file is where the HTTP cookie with the authentication token is stored. This prevents needing to log in after the first post-review (generally) read more If you go tohttp://192.168.3.20:8080/reviewboard/api/json/inyour browser, what do you see? The two paths you saw should be correct (though, there shouldn't be a period at the end). One is the page you go to in your browser for logging in with the web UI. The other is the one that tools like post-review can call to log in programatically. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/11 JohnHenry qhlonl...@163.com more detailed infomation from debug(data) in RBTools-02.beta2- py2.5.egg, process_json function: svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myUCMobile.c reviewboard.jpg Looking for '192.168.2.20 /reviewboard/' cookie in /data/John1/.post-review-cookies.txt Couldn't load cookie file: [Errno 2] No such file or directory:
Re: About the relationship between ReviewBoard Server and CVS
Hi, Christian, I have changed the source of Postreview.py, and now the post- review can work fine. I found that in class CVSClient, the function get_repository_info, It use socket.getfqdn(host) to replace the host of repository_path; So I managed to keep the repository_path unchanged. Though I don't quite catche what the socket.getfqdn(host) mean, But keep the repository_path will finally works. Now I can use post-review to generate reviewrequest. But if you can give me more guidance about the reason, I will be much thanks. And I need your help about ReviewBoard rebuild method, If I changed some source of reviewboard, then how to rebuild this project to apply my change? I think Reviewboard is a server application based on Django, There must be some difference between it's rebuild and the change on post-review code. Need your suggestion. Best Regards! Hi,... read more You will need cvs on the server, definitely. The 1.1 alpha series won't let you create a CVS repository without having it. You'll also need it on the client running post-review. The base path should be None in this case. It's really only needed for Subversion. Can you show me the Repository entries you have configured in the administration UI in Review Board? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, The detailed error info is: - [jo...@dev2 test]$ post-review --debug --username=Johnl1 -- password=Johnl1 myTestCode.c svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myTestCode.c Looking for '192.168.3.20 /' cookie in /data1/John1/.post-review-cookies.txt Couldn't load cookie file: '/data1/John1/.post-review-cookies.txt' does not look like a Netscape format cookies file == Review Board Login Required Enter username and password for Review Board athttp://192.168.3.20:8080/ Logging in with username John1 HTTP POSTing tohttp://192.168.3.20:8080/api/json/accounts/login/: {'username': 'John1', 'password': '**'} Logged in. Attempting to create review request for None HTTP POSTing tohttp://192.168.3.20:8080/api/json/reviewrequests/new/: {'repository_path': 'cvs_gz:/export/home/cvsroot'} Error creating review request: The repository path specified is not in the list of known repositories (code 206) -- My question is : Why the Base path value of mine is None? does it have relationship with my problem code 206? if it does, Then how to set this Base path in Review Board? I have not installed CVS or SVN, I am using an account on an exist CVS server. Must I have to install a independent CVS for the ReviewBoard? Best Regards! On 12月14日, 下午5时53分, Christian Hammond chip...@chipx86.com wrote: Hi, The Path or Mirror Path for the Repository entry in the admin UI in Review Board must be exactly what post-review is trying to report. So, in your case, it should be cvs_gz/export/home/cvsoot. I'm hoping to add fuzzy matching in the future (so as to make it possible to use aliases for domains, be more flexible with IP addresses and usernames, etc.), but for now it must be an exact match. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, This problem has been resolved; in the .reviewboardrc , I set the REVIEWBOARD_URL ashttp://192.168.3.20:8080/reviewboard;afterI delete the reviewboard ,login is successful now. But I stil can not use RB yet, Error info: Error creating review request: The repository path specified is not in the list of known repositories (code 206); I found my previous Repository setting is the parent dir of actual Repository dir. So I have reset the Repository path on web UI: :pserver:myn...@192.168.3.151:/export/home/cvsroot/test But still, The info is : {'repository_path': 'cvs_gz:/export/home/ cvsroot'} the cvs_gz value is not changed at all, Why? Best Regards! On Dec 12, 5:25 pm, Christian Hammond chip...@chipx86.com wrote: The .post-review-cookies.txt file is where the HTTP cookie with the authentication token is stored. This prevents needing to log in after the first post-review (generally) read more If you go tohttp://192.168.3.20:8080/reviewboard/api/json/inyour browser, what do you see? The two paths you saw should be correct (though, there shouldn't be a period at the end). One is the page you go to in your browser for logging in with the web UI. The other is the one that tools like post-review can call to
Re: About the relationship between ReviewBoard Server and CVS
The getfqdn call essentially gets the fully-qualified domain (so, foo.example.com instead of just foo, for instance). We recently added support for Perforce to check against all aliases, including what's reported locally. We should add this for CVS as well. I don't really know what you mean by rebuild method. Do you mean you want to know how to update a review request when you change the code you're writing for your project? If so, then you can use the -r parameter of post-review. For example, to update review request #42 with your latest code changes, run: post-review -r 42 Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, Christian, I have changed the source of Postreview.py, and now the post- review can work fine. I found that in class CVSClient, the function get_repository_info, It use socket.getfqdn(host) to replace the host of repository_path; So I managed to keep the repository_path unchanged. Though I don't quite catche what the socket.getfqdn(host) mean, But keep the repository_path will finally works. Now I can use post-review to generate reviewrequest. But if you can give me more guidance about the reason, I will be much thanks. And I need your help about ReviewBoard rebuild method, If I changed some source of reviewboard, then how to rebuild this project to apply my change? I think Reviewboard is a server application based on Django, There must be some difference between it's rebuild and the change on post-review code. Need your suggestion. Best Regards! Hi,... read more You will need cvs on the server, definitely. The 1.1 alpha series won't let you create a CVS repository without having it. You'll also need it on the client running post-review. The base path should be None in this case. It's really only needed for Subversion. Can you show me the Repository entries you have configured in the administration UI in Review Board? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, The detailed error info is: - [jo...@dev2 test]$ post-review --debug --username=Johnl1 -- password=Johnl1 myTestCode.c svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myTestCode.c Looking for '192.168.3.20 /' cookie in /data1/John1/.post-review-cookies.txt Couldn't load cookie file: '/data1/John1/.post-review-cookies.txt' does not look like a Netscape format cookies file == Review Board Login Required Enter username and password for Review Board athttp:// 192.168.3.20:8080/ Logging in with username John1 HTTP POSTing tohttp://192.168.3.20:8080/api/json/accounts/login/: {'username': 'John1', 'password': '**'} Logged in. Attempting to create review request for None HTTP POSTing tohttp:// 192.168.3.20:8080/api/json/reviewrequests/new/: {'repository_path': 'cvs_gz:/export/home/cvsroot'} Error creating review request: The repository path specified is not in the list of known repositories (code 206) -- My question is : Why the Base path value of mine is None? does it have relationship with my problem code 206? if it does, Then how to set this Base path in Review Board? I have not installed CVS or SVN, I am using an account on an exist CVS server. Must I have to install a independent CVS for the ReviewBoard? Best Regards! On 12月14日, 下午5时53分, Christian Hammond chip...@chipx86.com wrote: Hi, The Path or Mirror Path for the Repository entry in the admin UI in Review Board must be exactly what post-review is trying to report. So, in your case, it should be cvs_gz/export/home/cvsoot. I'm hoping to add fuzzy matching in the future (so as to make it possible to use aliases for domains, be more flexible with IP addresses and usernames, etc.), but for now it must be an exact match. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, This problem has been resolved; in the .reviewboardrc , I set the REVIEWBOARD_URL ashttp://192.168.3.20:8080/reviewboard;afterI delete the reviewboard ,login is successful now. But I stil can not use RB yet, Error info: Error creating review request: The repository path specified is not in the list of known repositories (code 206); I found my previous Repository setting is the parent dir of actual Repository dir. So I have
Re: About the relationship between ReviewBoard Server and CVS
Hi, Christian, Thanks for replay. I said rebuild because I am using the directly installed ReviewBoard, I don't know it's compiling form souce process. If I want to change some python source code of ReviewBoard, Then how to compile the ReviewBoard again, and do I need to reinstall the compile result again for use? Sorry for my bad English expression. Best Regards! On Dec 15, 1:50 pm, Christian Hammond chip...@chipx86.com wrote: The getfqdn call essentially gets the fully-qualified domain (so, foo.example.com instead of just foo, for instance) read more We recently added support for Perforce to check against all aliases, including what's reported locally. We should add this for CVS as well. I don't really know what you mean by rebuild method. Do you mean you want to know how to update a review request when you change the code you're writing for your project? If so, then you can use the -r parameter of post-review. For example, to update review request #42 with your latest code changes, run: post-review -r 42 Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, Christian, I have changed the source of Postreview.py, and now the post- review can work fine. I found that in class CVSClient, the function get_repository_info, It use socket.getfqdn(host) to replace the host of repository_path; So I managed to keep the repository_path unchanged. Though I don't quite catche what the socket.getfqdn(host) mean, But keep the repository_path will finally works. Now I can use post-review to generate reviewrequest. But if you can give me more guidance about the reason, I will be much thanks. And I need your help about ReviewBoard rebuild method, If I changed some source of reviewboard, then how to rebuild this project to apply my change? I think Reviewboard is a server application based on Django, There must be some difference between it's rebuild and the change on post-review code. Need your suggestion. Best Regards! Hi,... read more You will need cvs on the server, definitely. The 1.1 alpha series won't let you create a CVS repository without having it. You'll also need it on the client running post-review. The base path should be None in this case. It's really only needed for Subversion. Can you show me the Repository entries you have configured in the administration UI in Review Board? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, The detailed error info is: - [jo...@dev2 test]$ post-review --debug --username=Johnl1 -- password=Johnl1 myTestCode.c svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myTestCode.c Looking for '192.168.3.20 /' cookie in /data1/John1/.post-review-cookies.txt Couldn't load cookie file: '/data1/John1/.post-review-cookies.txt' does not look like a Netscape format cookies file == Review Board Login Required Enter username and password for Review Board athttp:// 192.168.3.20:8080/ Logging in with username John1 HTTP POSTing tohttp://192.168.3.20:8080/api/json/accounts/login/: {'username': 'John1', 'password': '**'} Logged in. Attempting to create review request for None HTTP POSTing tohttp:// 192.168.3.20:8080/api/json/reviewrequests/new/: {'repository_path': 'cvs_gz:/export/home/cvsroot'} Error creating review request: The repository path specified is not in the list of known repositories (code 206) --- My question is : Why the Base path value of mine is None? does it have relationship with my problem code 206? if it does, Then how to set this Base path in Review Board? I have not installed CVS or SVN, I am using an account on an exist CVS server. Must I have to install a independent CVS for the ReviewBoard? Best Regards! On 12月14日, 下午5时53分, Christian Hammond chip...@chipx86.com wrote: Hi, The Path or Mirror Path for the Repository entry in the admin UI in Review Board must be exactly what post-review is trying to report. So, in your case, it should be cvs_gz/export/home/cvsoot. I'm hoping to add fuzzy matching in the future (so as to make it possible to use aliases for domains, be more flexible with IP addresses and usernames, etc.), but for now it must be an exact match. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com
Re: About the relationship between ReviewBoard Server and CVS
Oh, I see. Thank you very much! Best Regards! On 12月15日, 下午2时13分, Christian Hammond chip...@chipx86.com wrote: Review Board is in Python, and doesn't actually need to be compiled. However, to do any real development (with the expectation of contributing back to the project) you'll need to have a copy of the source tree and develop from there. There's some instructions at: http://www.reviewboard.org/docs/codebase/dev/getting-started/ Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, Christian, Thanks for replay. I said rebuild because I am using the directly installed ReviewBoard, I don't know it's compiling form souce process. If I want to change some python source code of ReviewBoard, Then how to compile the ReviewBoard again, and do I need to reinstall the compile result again for use? Sorry for my bad English expression. Best Regards! On Dec 15, 1:50 pm, Christian Hammond chip...@chipx86.com wrote: The getfqdn call essentially gets the fully-qualified domain (so, foo.example.com instead of just foo, for instance) read more We recently added support for Perforce to check against all aliases, including what's reported locally. We should add this for CVS as well. I don't really know what you mean by rebuild method. Do you mean you want to know how to update a review request when you change the code you're writing for your project? If so, then you can use the -r parameter of post-review. For example, to update review request #42 with your latest code changes, run: post-review -r 42 Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, Christian, I have changed the source of Postreview.py, and now the post- review can work fine. I found that in class CVSClient, the function get_repository_info, It use socket.getfqdn(host) to replace the host of repository_path; So I managed to keep the repository_path unchanged. Though I don't quite catche what the socket.getfqdn(host) mean, But keep the repository_path will finally works. Now I can use post-review to generate reviewrequest. But if you can give me more guidance about the reason, I will be much thanks. And I need your help about ReviewBoard rebuild method, If I changed some source of reviewboard, then how to rebuild this project to apply my change? I think Reviewboard is a server application based on Django, There must be some difference between it's rebuild and the change on post-review code. Need your suggestion. Best Regards! Hi,... read more You will need cvs on the server, definitely. The 1.1 alpha series won't let you create a CVS repository without having it. You'll also need it on the client running post-review. The base path should be None in this case. It's really only needed for Subversion. Can you show me the Repository entries you have configured in the administration UI in Review Board? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/14 JohnHenry qhlonl...@163.com Hi, The detailed error info is: - [jo...@dev2 test]$ post-review --debug --username=Johnl1 -- password=Johnl1 myTestCode.c svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myTestCode.c Looking for '192.168.3.20 /' cookie in /data1/John1/.post-review-cookies.txt Couldn't load cookie file: '/data1/John1/.post-review-cookies.txt' does not look like a Netscape format cookies file == Review Board Login Required Enter username and password for Review Board athttp:// 192.168.3.20:8080/ Logging in with username John1 HTTP POSTing tohttp:// 192.168.3.20:8080/api/json/accounts/login/: {'username': 'John1', 'password': '**'} Logged in. Attempting to create review request for None HTTP POSTing tohttp:// 192.168.3.20:8080/api/json/reviewrequests/new/: {'repository_path': 'cvs_gz:/export/home/cvsroot'} Error creating review request: The repository path specified is not in the list of known repositories (code 206) --- My question is : Why the Base path value of mine is None? does it have relationship with my problem code 206? if it does, Then how to set this Base path in Review Board? I have not
Re: About the relationship between ReviewBoard Server and CVS
Hi, I had type http://192.168.3.20:8080/reviewboard/api/json; the web shown is the login page, But the title of this web reports:404 Page Does Not Exist | Review Board On Dec 12, 5:25 pm, Christian Hammond chip...@chipx86.com wrote: The .post-review-cookies.txt file is where the HTTP cookie with the authentication token is stored. This prevents needing to log in after the first post-review (generally) read more If you go tohttp://192.168.3.20:8080/reviewboard/api/json/in your browser, what do you see? The two paths you saw should be correct (though, there shouldn't be a period at the end). One is the page you go to in your browser for logging in with the web UI. The other is the one that tools like post-review can call to log in programatically. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com 2009/12/11 JohnHenry qhlonl...@163.com more detailed infomation from debug(data) in RBTools-02.beta2- py2.5.egg, process_json function: svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myUCMobile.c reviewboard.jpg Looking for '192.168.2.20 /reviewboard/' cookie in /data/John1/.post-review-cookies.txt Couldn't load cookie file: [Errno 2] No such file or directory: '/data/John1/.post-review-cookies.txt' == Review Board Login Required Enter username and password for Review Board at http://192.168.3.20:8080/reviewboard/ Logging in with username John1 HTTP POSTing to http://192.168.3.20:8080/reviewboard/api/json/accounts/login/: {'username': 'John1', 'password': '**'} What is the .post-review-cookies.txt file? On 12月11日, 下午7时12分, Christian Hammond chip...@chipx86.com wrote: Using just the REVIEWBOARD_URL setting is fine. You can put that .reviewboardrc file right in the CVS checkout directory if you want. It sounds like the directory you've specified actually isn't a working path to Review Board. That, or what you have specified is redirecting to the wrong place. What do you have for REVIEWBOARD_URL? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Fri, Dec 11, 2009 at 2:49 AM, JohnHenry qhlonl...@163.com wrote: I had edit the .reviewboardrc file as the type(I have changed the url or cvs path to the site of mine): TREES = { 'http://svn.example.com':{ 'REVIEWBOARD_URL': 'http://reviewboard.example.com', }, 'usern...@cvs.example.com:/cvsroot/cvs': { 'REVIEWBOARD_URL': 'http://reviewboard.example.com', }, } But when I use post-review , it report : Unable to find a Review Board server for this source code tree. Then I had used the second method, I edit the file as the type: REVIEWBOARD_URL = http://reviewboard.example.com; this time, I can load and then I type username and password of RB user to login, But that returns: Unable to access http://192.168.2.20:8080/reviewboard/api/json/accounts/login/.; the host path may be invalid HTTP Error 404: Not Found. But I had loged in with this user in Web UI, Then Why I got this under post-review? Need suggestion. Best Regards! On 12月11日, 下午6时28分, Christian Hammond chip...@chipx86.com wrote: Hi, post-review is meant to be run from within a CVS checkout (in your case). So, if you have a checkout in a directory, you should be able to run post-review and have it generate a diff properly. post-review will simply call out to 'cvs diff', meaning that for authentication to work, you'll first need to 'cvs login' on that client. This should only need to be done once on that computer. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Fri, Dec 11, 2009 at 1:30 AM, JohnHenry qhlonl...@163.com wrote: Oh, I see, Thank you. And I have another problem. I think the post- review is good tool because it need no hand generated diff file. But I had installed the post-review on my Windows machine as client and I want to use it to link both RB server on a Linux machine and CVS server on another Linux machine, Then How to edit my .reviewboardrc file on the Windows machine I am using to reach that? In my understanding, The post-review is working on the client so it requires a direct link to CVS server to generate and fetch the diff file( and then send the diff to RB server ), I don't quite catch the Configuration of post-review. I can write in .reviewboardrc as follows: TREES = { ':pserver:myn...@192.168.2.21:/export/cvsroot': { 'REVIEWBOARD_URL':
Re: About the relationship between ReviewBoard Server and CVS
The .post-review-cookies.txt file is where the HTTP cookie with the authentication token is stored. This prevents needing to log in after the first post-review (generally). If you go to http://192.168.3.20:8080/reviewboard/api/json/ in your browser, what do you see? The two paths you saw should be correct (though, there shouldn't be a period at the end). One is the page you go to in your browser for logging in with the web UI. The other is the one that tools like post-review can call to log in programatically. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com 2009/12/11 JohnHenry qhlonl...@163.com more detailed infomation from debug(data) in RBTools-02.beta2- py2.5.egg, process_json function: svn info repository info: Path: cvs_gz:/export/home/cvsroot, Base path: None, Supports changesets: False cvs diff -uN myUCMobile.c reviewboard.jpg Looking for '192.168.2.20 /reviewboard/' cookie in /data/John1/.post-review-cookies.txt Couldn't load cookie file: [Errno 2] No such file or directory: '/data/John1/.post-review-cookies.txt' == Review Board Login Required Enter username and password for Review Board at http://192.168.3.20:8080/reviewboard/ Logging in with username John1 HTTP POSTing to http://192.168.3.20:8080/reviewboard/api/json/accounts/login/: {'username': 'John1', 'password': '**'} What is the .post-review-cookies.txt file? On 12月11日, 下午7时12分, Christian Hammond chip...@chipx86.com wrote: Using just the REVIEWBOARD_URL setting is fine. You can put that .reviewboardrc file right in the CVS checkout directory if you want. It sounds like the directory you've specified actually isn't a working path to Review Board. That, or what you have specified is redirecting to the wrong place. What do you have for REVIEWBOARD_URL? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Fri, Dec 11, 2009 at 2:49 AM, JohnHenry qhlonl...@163.com wrote: I had edit the .reviewboardrc file as the type(I have changed the url or cvs path to the site of mine): TREES = { 'http://svn.example.com':{ 'REVIEWBOARD_URL': 'http://reviewboard.example.com', }, 'usern...@cvs.example.com:/cvsroot/cvs': { 'REVIEWBOARD_URL': 'http://reviewboard.example.com', }, } But when I use post-review , it report : Unable to find a Review Board server for this source code tree. Then I had used the second method, I edit the file as the type: REVIEWBOARD_URL = http://reviewboard.example.com; this time, I can load and then I type username and password of RB user to login, But that returns: Unable to access http://192.168.2.20:8080/reviewboard/api/json/accounts/login/.; the host path may be invalid HTTP Error 404: Not Found. But I had loged in with this user in Web UI, Then Why I got this under post-review? Need suggestion. Best Regards! On 12月11日, 下午6时28分, Christian Hammond chip...@chipx86.com wrote: Hi, post-review is meant to be run from within a CVS checkout (in your case). So, if you have a checkout in a directory, you should be able to run post-review and have it generate a diff properly. post-review will simply call out to 'cvs diff', meaning that for authentication to work, you'll first need to 'cvs login' on that client. This should only need to be done once on that computer. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Fri, Dec 11, 2009 at 1:30 AM, JohnHenry qhlonl...@163.com wrote: Oh, I see, Thank you. And I have another problem. I think the post- review is good tool because it need no hand generated diff file. But I had installed the post-review on my Windows machine as client and I want to use it to link both RB server on a Linux machine and CVS server on another Linux machine, Then How to edit my .reviewboardrc file on the Windows machine I am using to reach that? In my understanding, The post-review is working on the client so it requires a direct link to CVS server to generate and fetch the diff file( and then send the diff to RB server ), I don't quite catch the Configuration of post-review. I can write in .reviewboardrc as follows: TREES = { ':pserver:myn...@192.168.2.21:/export/cvsroot': { 'REVIEWBOARD_URL': 'http://192.168.2.20:8080/reviewboard', }, } But the CVS server would need my password to login, Then how can I login it. BestRegards! On 12月11日, 上午11时21分, Scott Quesnelle scott.quesne...@gmail.com wrote: The idea is that a diff only contains the lines that have changed. RB contacts cvs and checks out the
Re: About the relationship between ReviewBoard Server and CVS
Oh, I see, Thank you. And I have another problem. I think the post- review is good tool because it need no hand generated diff file. But I had installed the post-review on my Windows machine as client and I want to use it to link both RB server on a Linux machine and CVS server on another Linux machine, Then How to edit my .reviewboardrc file on the Windows machine I am using to reach that? In my understanding, The post-review is working on the client so it requires a direct link to CVS server to generate and fetch the diff file( and then send the diff to RB server ), I don't quite catch the Configuration of post-review. I can write in .reviewboardrc as follows: TREES = { ':pserver:myn...@192.168.2.21:/export/cvsroot': { 'REVIEWBOARD_URL': 'http://192.168.2.20:8080/reviewboard', }, } But the CVS server would need my password to login, Then how can I login it. BestRegards! On 12月11日, 上午11时21分, Scott Quesnelle scott.quesne...@gmail.com wrote: The idea is that a diff only contains the lines that have changed. RB contacts cvs and checks out the file(s) that are changed, and then applies the diff to thos files. This allows you to see the file before and after the proposed changed. All of this is independent of the actual commit to CVS. You can use any account which is able to access CVS and checkout the necessary files, the account doesn't have to have write permissions to CVS. Scott On Thu, Dec 10, 2009 at 10:07 PM, JohnHenry qhlonl...@163.com wrote: Hi, all, I am now confused by the relationship between CVS and RB. RB has provieded post-commit review, there is no direct relationship between RB review and CVS submit. So it looks like that the review process and CVS operation are independent. But why the RB need a repository setting? Is the repository used by ReviewBoard the same repository we do software project? and About the setting of RB repository. We are using CVS, So Do we need a seperate user defined in CVS for RB use? Or can I use one of the project developer's account as the RB repository Path setting? Sorry for not enough knowledge about CVS. Regards! -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know athttp://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: About the relationship between ReviewBoard Server and CVS
And there may be some configuration error in my rb-site. But I have no idea about that: Because I have no root permission on RedHat system, So I had use Include statement in apache httpd.conf file, to import the apache-modpython.conf file of rb-site. and that turns out accessable through Web-UI of reviewboard, But I don't know why I can't use post-review. Our futher use is post-commit code review, So post- review is required then. Regards! On 12月11日, 下午6时28分, Christian Hammond chip...@chipx86.com wrote: Hi, post-review is meant to be run from within a CVS checkout (in your case). So, if you have a checkout in a directory, you should be able to run post-review and have it generate a diff properly. post-review will simply call out to 'cvs diff', meaning that for authentication to work, you'll first need to 'cvs login' on that client. This should only need to be done once on that computer. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Fri, Dec 11, 2009 at 1:30 AM, JohnHenry qhlonl...@163.com wrote: Oh, I see, Thank you. And I have another problem. I think the post- review is good tool because it need no hand generated diff file. But I had installed the post-review on my Windows machine as client and I want to use it to link both RB server on a Linux machine and CVS server on another Linux machine, Then How to edit my .reviewboardrc file on the Windows machine I am using to reach that? In my understanding, The post-review is working on the client so it requires a direct link to CVS server to generate and fetch the diff file( and then send the diff to RB server ), I don't quite catch the Configuration of post-review. I can write in .reviewboardrc as follows: TREES = { ':pserver:myn...@192.168.2.21:/export/cvsroot': { 'REVIEWBOARD_URL': 'http://192.168.2.20:8080/reviewboard', }, } But the CVS server would need my password to login, Then how can I login it. BestRegards! On 12月11日, 上午11时21分, Scott Quesnelle scott.quesne...@gmail.com wrote: The idea is that a diff only contains the lines that have changed. RB contacts cvs and checks out the file(s) that are changed, and then applies the diff to thos files. This allows you to see the file before and after the proposed changed. All of this is independent of the actual commit to CVS. You can use any account which is able to access CVS and checkout the necessary files, the account doesn't have to have write permissions to CVS. Scott On Thu, Dec 10, 2009 at 10:07 PM, JohnHenry qhlonl...@163.com wrote: Hi, all, I am now confused by the relationship between CVS and RB. RB has provieded post-commit review, there is no direct relationship between RB review and CVS submit. So it looks like that the review process and CVS operation are independent. But why the RB need a repository setting? Is the repository used by ReviewBoard the same repository we do software project? and About the setting of RB repository. We are using CVS, So Do we need a seperate user defined in CVS for RB use? Or can I use one of the project developer's account as the RB repository Path setting? Sorry for not enough knowledge about CVS. Regards! -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know athttp://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com reviewboard%2bunsubscr...@googlegroups.comreviewboard%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know athttp://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en- 隐藏被引用文字 - - 显示引用的文字 - -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
About the relationship between ReviewBoard Server and CVS
Hi, all, I am now confused by the relationship between CVS and RB. RB has provieded post-commit review, there is no direct relationship between RB review and CVS submit. So it looks like that the review process and CVS operation are independent. But why the RB need a repository setting? Is the repository used by ReviewBoard the same repository we do software project? and About the setting of RB repository. We are using CVS, So Do we need a seperate user defined in CVS for RB use? Or can I use one of the project developer's account as the RB repository Path setting? Sorry for not enough knowledge about CVS. Regards! -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en