Hi, I have a similar setup of ReviewBoard with Mercurial repository being managed by RhodeCode with a username and password authentication. I'm able to do a 'hg postreview -o xxx' and when I click on 'View Diff' I'm getting the same error.
Any pointers on the same would be really helpful. Thanks, Vairav On Jan 5, 12:46 am, Olivia <honghua....@gmail.com> wrote: > Hi Nikita, > > I met the same issue with Git repository. Do you have any suggestion > to fix? > Should I also change /usr/local/lib/python2.6/dist-packages/ > ReviewBoard-1.6-py2.6.egg/reviewboard/scmtools/git.py and how? > > Best Regards, > Olivia Yin > > On 2011年12月21日, 下午11时08分, Nikita Zhuk <nikita.z...@gmail.com> wrote: > > > > > > > > > Ok, I've debugged this problem a bit and came to the conclusion that > > fetching raw files in hg.py from BitBucket with HTTPBasicAuthHandler > > seems to have some issues. I've created a workaround by tweaking the > > HgWebClient class a bit to use BitBucket API to fetch raw files. This > > patch solved my > > problem:https://github.com/nzhuk/reviewboard/commit/a56829a594ade9696a6ba9bfb... > > > Since it's BitBucket-only solution you probably wouldn't want to pull > > it directly into the main fork, but it might give you some ideas for > > the development. > > > - Nikita Zhuk > > > On Dec 12, 9:30 am, Nikita Zhuk <nikita.z...@gmail.com> wrote: > > > > Hi Christian, > > > > Sure. The repository configuration screen doesn't have any sensitive > > > information visible (and I'm using a non-critical test repository anyway), > > > so I'm attaching a screenshot of it here (the password field is blank in > > > the screenshot, but I do use correct password in there of course). > > > > ReviewBoard's settings_local.py looks like this: > > > > $ cat conf/settings_local.py > > > # Site-specific configuration settings for Review Board > > > # Definitions of these settings can be found at > > > #http://docs.djangoproject.com/en/dev/ref/settings/ > > > > # Database configuration > > > DATABASES = { > > > 'default': { > > > 'ENGINE': 'django.db.backends.sqlite3', > > > 'NAME': '/Users/xxx/data/reviewboard.db', > > > }, > > > > } > > > > # Unique secret key. Don't share this with anybody. > > > SECRET_KEY = 'XXX' > > > > # Cache backend settings. > > > CACHE_BACKEND = 'file:///tmp/reviewboard_cache' > > > > # Extra site information. > > > SITE_ID = 1 > > > SITE_ROOT = '/review/' > > > FORCE_SCRIPT_NAME = '' > > > DEBUG = True > > > LOGGING_ENABLED = True > > > > Since I have enabled logging, I can also provide the debug-level log which > > > is generated when I click the "View Diff" button: > > > > ReviewBoard base URL:http://myhost.local/review > > > URL which is opened by clicking the "View Diff" > > > button:http://myhost.local/review/r/39/diff/#index_header > > > > Log output: > > > > 2011-12-09 20:20:00,157 - DEBUG - Logging to /tmp/rb/reviewboard.log with > > > a > > > minimum level of DEBUG > > > 2011-12-09 20:20:00,157 - DEBUG - Log file for Review Board v1.6.3 (PID > > > 10247) > > > 2011-12-09 20:20:15,090 - DEBUG - Initialized HgWebClient with > > > url=u'http://bitbucket.org/nzhuk/testrep1/', username=u'nzhuk' > > > 2011-12-09 20:20:15,090 - DEBUG - Initialized HgWebClient with > > > url=u'http://bitbucket.org/nzhuk/testrep1/', username=u'nzhuk' > > > 2011-12-09 20:20:16,962 - DEBUG - Initialized HgWebClient with > > > url=u'http://bitbucket.org/nzhuk/testrep1/', username=u'nzhuk' > > > 2011-12-09 20:20:16,963 - DEBUG - Initialized HgWebClient with > > > url=u'http://bitbucket.org/nzhuk/testrep1/', username=u'nzhuk' > > > 2011-12-09 20:20:16,965 - DEBUG - Generating diff viewer page for filediff > > > id 13 > > > 2011-12-09 20:20:16,966 - DEBUG - Begin: Generating diff file info for > > > diffset id 13 > > > 2011-12-09 20:20:16,967 - DEBUG - Initialized HgWebClient with > > > url=u'http://bitbucket.org/nzhuk/testrep1/', username=u'nzhuk' > > > 2011-12-09 20:20:16,968 - DEBUG - End: Generating diff file info for > > > diffset id 13 > > > 2011-12-09 20:20:16,968 - DEBUG - Generating diff file info for diffset id > > > 13 took 0.1665 seconds > > > 2011-12-09 20:20:16,968 - DEBUG - Begin: Generating diff file info for > > > diffset id 13, filediff 13 > > > 2011-12-09 20:20:16,968 - DEBUG - Initialized HgWebClient with > > > url=u'http://bitbucket.org/nzhuk/testrep1/', username=u'nzhuk' > > > 2011-12-09 20:20:16,969 - INFO - Cache miss for key > > > myhost.local:diff-sidebyside-hl-13. > > > 2011-12-09 20:20:16,969 - DEBUG - Initialized HgWebClient with > > > url=u'http://bitbucket.org/nzhuk/testrep1/', username=u'nzhuk' > > > 2011-12-09 20:20:16,969 - INFO - Cache miss for key > > > myhost.local:http%3A//bitbucket.org/nzhuk/testrep1/:README.txt:2df4ddabbe02 > > > . > > > 2011-12-09 20:20:16,970 - DEBUG - Begin: Fetching file 'README.txt' > > > r2df4ddabbe02 from TestRep1 > > > 2011-12-09 20:20:19,525 - DEBUG - End: Fetching file 'README.txt' > > > r2df4ddabbe02 from TestRep1 > > > 2011-12-09 20:20:19,525 - DEBUG - Fetching file 'README.txt' r2df4ddabbe02 > > > from TestRep1 took 2.555507 seconds > > > 2011-12-09 20:20:19,527 - DEBUG - Begin: Patching file README.txt > > > 2011-12-09 20:20:19,536 - DEBUG - End: Patching file README.txt > > > 2011-12-09 20:20:19,536 - DEBUG - Patching file README.txt took 0.8341 > > > seconds > > > > rb-repository-config.png > > > 83KViewDownload -- 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