Re: Re: Re: Re: About Error occured when print view diff on User WebUI of ReviewBoard
In your site's conf/settings_local.py, set DEBUG = True. You should then get a detailed error page. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Dec 17, 2009 at 8:29 PM, qhlonline qhlonl...@163.com wrote: Hello, Christian, I had changed some code on reviewboard, Then I restart the Apache server .And when I run the Reviewboard UI, It said: --- Review Board is taking a nap There are several possible reasons: - We're updating it. - You're trying to look at a really huge diff without collapsing, and it timed out (try viewing another diff and going back to collapsed changes; we're working on fixing this). - Our lazy good-for-nothing oompa-loompas stopped pedalling. It'll be back soon. --- Is that means my change has some python systax error? How to debug then? Need your suggestion. Best Regards! 在2009-12-17,Christian Hammond chip...@chipx86.com 写道: That's on the client, not the server, right? What version of patch is on the server? Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Wed, Dec 16, 2009 at 7:43 PM, qhlonline qhlonl...@163.com wrote: I am using the TortoiseCVS as CVS client, I am not sure what kind of diff it support, But my diff command is using as cvs diff -uN Can you please recommand me some GNU-diff-supported CVS client run on Windows OS? Thanks. Best Regards! 在2009-12-17,Christian Hammond chip...@chipx86.com 写道: What version of diff is on the Windows install? It must specifically use GNU diff, and not some other diff tool. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Wed, Dec 16, 2009 at 7:27 PM, qhlonline qhlonl...@163.com wrote: Hi, Christian, Now that is the different diff file contents of the same file change: On Windows: WWW Index: abc.c === RCS file: /export/home/cvsroot/test/abc.c,v retrieving revision 1.1 diff -u -r1.1 abc.c --- abc.c2009/12/17 02:37:241.1 +++ abc.c2009/12/17 02:43:08 @@ -2,6 +2,7 @@ #include stdlib.h int main() { +printf(Begin, Begin!); print(Hello World!); if(a==5) { @@ -11,4 +12,5 @@ { printf(Hi,sir!); } +printf(Hello, Sir!); } And on Linux: L Index: abc.c === RCS file: /export/home/cvsroot/test/abc.c,v retrieving revision 1.1 diff -u -r1.1 abc.c --- abc.c2009/12/17 02:37:241.1 +++ abc.c2009/12/17 02:50:30 @@ -2,6 +2,7 @@ #include stdlib.h int main() { +printf(Begin, Begin!); print(Hello World!); if(a==5) { @@ -11,4 +12,5 @@ { printf(Hi,sir!); } -} \ No newline at end of file +printf(Hello, Sir!); +} LL There is no much difference. But the linux diff file ends with a warning: \ No newline at end of file and the end Brace} has been viewed as a change: + and -; This kind of format diff file works well, The Reviewer can open the view diff correctly. But the windows diff file format, which gave no warning and view the last brace as unchanged, with this format, The Reviewers clicking view diff will report error as in the first message of this topic I have pointed. And infect I have never add any new-line to the end of the source code file: neither the original file, nore the chenged files in both Operating System. And If I had manualy add a blank new line in the changed file in Windows local source code file, I will get the same diff file content as that of linux said above, And that may slove this problem. But I don't know why. and How to fundamentally solve the problem? Best Regards! 在2009-12-16,Christian Hammond chip...@chipx86.com 写道: I don't really know what you mean, but I know that many companies using Review Board have clients on Linux, Windows and Mac who post to a Review Board server on Linux without any problems. I'd have to see some diffs and original source files where this fails to have an idea as to what's going wrong. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Tue, Dec 15, 2009 at 7:55 PM, JohnHenry qhlonl...@163.com wrote: I have viewed the diff file of both Windows and Linux, It seems that not only they have difference between there NewLine character, There are some file format difference but I am
Re: Re: Re: Re: Re: About Error occured when print view diff on User WebUI of ReviewBoard
Please see our documentation on developing Review Board. You need to run our devserver. Running individual python scripts will not work. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Dec 17, 2009 at 10:43 PM, qhlonline qhlonl...@163.com wrote: Thanks Christian, Before receiving your mail, I had tried to run python diffutlis.py (diffutils.py is the file I changed) to check the syntax error, Now an error was been checked and fixed. But report error in Server console like that: - Traceback (most recent call last): File diffutils.py, line 23, in module from djblets.siteconfig.models import SiteConfiguration File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Djblets-0.5.6-py2.5.egg/djblets/siteconfig/models.py, line 28, in module from django.contrib.sites.models import Site File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/sites/models.py, line 1, in module from django.db import models File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/db/__init__.py, line 10, in module if not settings.DATABASE_ENGINE: File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/utils/functional.py, line 269, in __getattr__ self._setup() File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/conf/__init__.py, line 38, in _setup raise ImportError(Settings cannot be imported, because environment variable %s is undefined. % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. And this time, on the client WebUI, the ReviewBoard report as follows: -- Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: 1. ^ ^admin/ 2. ^ ^media/(?Ppath.*)$ 3. ^ ^account/ 4. ^ ^api/(?Papi_formatjson|xml)/ 5. ^ ^r/ 6. ^ ^reports/ 7. ^ ^dashboard/$ 8. ^ ^users/$ 9. ^ ^users/(?Pusername[a-za-z...@_\-\.]+)/$ 10. ^ ^groups/$ 11. ^ ^groups/(?Pname[A-Za-z0-9_-]+)/$ 12. ^ ^groups/(?Pname[A-Za-z0-9_-]+)/members/$ 13. ^ ^feeds/rss/(?Purl.*)/$ 14. ^ ^feeds/atom/(?Purl.*)/$ 15. ^ ^account/logout/$ 16. ^ ^$ 17. ^ ^iphone/ The current URL, reviewboard/databasemanagement, didn't match any of these. --- I think that my reckless use of python diffutlis.py command has executed some undesirable operation to rbsite, Then can this error be fixed or I have to reinstall ReviewBoard? Best Regards! 在2009-12-18,Christian Hammond chip...@chipx86.com 写道: In your site's conf/settings_local.py, set DEBUG = True. You should then get a detailed error page. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Dec 17, 2009 at 8:29 PM, qhlonline qhlonl...@163.com wrote: Hello, Christian, I had changed some code on reviewboard, Then I restart the Apache server .And when I run the Reviewboard UI, It said: --- Review Board is taking a nap There are several possible reasons: - We're updating it. - You're trying to look at a really huge diff without collapsing, and it timed out (try viewing another diff and going back to collapsed changes; we're working on fixing this). - Our lazy good-for-nothing oompa-loompas stopped pedalling. It'll be back soon. --- Is that means my change has some python systax error? How to debug then? Need your suggestion. Best Regards! 在2009-12-17,Christian Hammond chip...@chipx86.com 写道: That's on the client, not the server, right? What version of patch is on the server? Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Wed, Dec 16, 2009 at 7:43 PM, qhlonline qhlonl...@163.com wrote: I am using the TortoiseCVS as CVS client, I am not sure what kind of diff it support, But my diff command is using as cvs diff -uN Can you please recommand me some GNU-diff-supported CVS client run on Windows OS? Thanks. Best Regards! 在2009-12-17,Christian Hammond chip...@chipx86.com 写道: What version of diff is on the Windows install? It must specifically use GNU diff, and not some other diff tool. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On
Re:Re: Re: Re: Re: Re: About Error occured when print view diff on User WebUI of ReviewBoard
Hi, Christian, The problem of view diff is actually caused by some diff file error. My RB server is on Linux. And the file need to be reviewed is edited in Windows OS, with no new-line at the end of this file. Then I use cvs add to add the file to repository. Then I make some change to the file and use post-review to commit a review_request for this file. But the Reviewer will open a page of warnings. I found that the diff file is ended with \r\n. If I manully delete those two character and commit the diff file with WebUI, The commit will be succesful. So I am trying to change ReviewBoard source of diffutils.py if the code: p = subprocess.Popen(['patch', '-o', newfile, oldfile], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=sub process.STDOUT) .. failure = p.wait() returns value not None, Then I changed the diff content to delete the last /n character and redo the operation : p = subprocess.Popen(['patch', '-o', newfile, oldfile], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=sub process.STDOUT) I had thought that will slove the problem, But failed. Is my method worong? Best Regards! I see there are devserver in Reviewboard, But I don't know how to shutdown it after debug. 在2009-12-18,Christian Hammond chip...@chipx86.com 写道: Please see our documentation on developing Review Board. You need to run our devserver. Running individual python scripts will not work. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Dec 17, 2009 at 10:43 PM, qhlonline qhlonl...@163.com wrote: Thanks Christian, Before receiving your mail, I had tried to run python diffutlis.py (diffutils.py is the file I changed) to check the syntax error, Now an error was been checked and fixed. But report error in Server console like that: - Traceback (most recent call last): File diffutils.py, line 23, in module from djblets.siteconfig.models import SiteConfiguration File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Djblets-0.5.6-py2.5.egg/djblets/siteconfig/models.py, line 28, in module from django.contrib.sites.models import Site File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/sites/models.py, line 1, in module from django.db import models File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/db/__init__.py, line 10, in module if not settings.DATABASE_ENGINE: File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/utils/functional.py, line 269, in __getattr__ self._setup() File /data1/qiaohl/bin/develop_tools/python/python2.5/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/conf/__init__.py, line 38, in _setup raise ImportError(Settings cannot be imported, because environment variable %s is undefined. % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. And this time, on the client WebUI, the ReviewBoard report as follows: -- Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: ^ ^admin/ ^ ^media/(?Ppath.*)$ ^ ^account/ ^ ^api/(?Papi_formatjson|xml)/ ^ ^r/ ^ ^reports/ ^ ^dashboard/$ ^ ^users/$ ^ ^users/(?Pusername[a-za-z...@_\-\.]+)/$ ^ ^groups/$ ^ ^groups/(?Pname[A-Za-z0-9_-]+)/$ ^ ^groups/(?Pname[A-Za-z0-9_-]+)/members/$ ^ ^feeds/rss/(?Purl.*)/$ ^ ^feeds/atom/(?Purl.*)/$ ^ ^account/logout/$ ^ ^$ ^ ^iphone/ The current URL, reviewboard/databasemanagement, didn't match any of these. --- I think that my reckless use of python diffutlis.py command has executed some undesirable operation to rbsite, Then can this error be fixed or I have to reinstall ReviewBoard? Best Regards! 在2009-12-18,Christian Hammond chip...@chipx86.com 写道: In your site's conf/settings_local.py, set DEBUG = True. You should then get a detailed error page. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Dec 17, 2009 at 8:29 PM, qhlonline qhlonl...@163.com wrote: Hello, Christian, I had changed some code on reviewboard, Then I restart the Apache server .And when I run the Reviewboard UI, It said: --- Review Board is taking a nap There are several possible reasons: We're updating it. You're trying to look at a really huge diff without collapsing, and it timed out (try viewing another diff and going back to collapsed changes; we're working on fixing this). Our lazy good-for-nothing