I'm using ReviewBoard 1.6.3 and my repositories are hosted at BitBucket as private repositories. I have configured my repository in the admin section of the RB by using HTTP URL and by entering my BitBucket user name and password. I can submit review requests, upload diffs and view raw diffs ("Download Diff") successfully, but when I click "View Diff" button on the review page, I get the following stack trace:
The patch to 'README.txt' didn't apply cleanly. The temporary files have been left in '/tmp/reviewboard.FtaN0j' for debugging purposes. `patch` returned: patching file /tmp/reviewboard.FtaN0j/tmpEtmkDI Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file /tmp/ reviewboard.FtaN0j/tmpEtmkDI-new.rej
Traceback (most recent call last): File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ reviewboard/diffviewer/views.py", line 151, in view_diff interdiffset, highlighting, True) File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ reviewboard/diffviewer/diffutils.py", line 1071, in get_diff_files large_data=True) File "/Library/Python/2.7/site-packages/Djblets-0.6.14-py2.7.egg/ djblets/util/misc.py", line 156, in cache_memoize data = lookup_callable() File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ reviewboard/diffviewer/diffutils.py", line 1070, in <lambda> enable_syntax_highlighting)), File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ reviewboard/diffviewer/diffutils.py", line 552, in get_chunks new = get_patched_file(old, filediff) File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ reviewboard/diffviewer/diffutils.py", line 374, in get_patched_file return patch(filediff.diff, buffer, filediff.dest_file) File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ reviewboard/diffviewer/diffutils.py", line 242, in patch (filename, tempdir, patch_output)) Exception: The patch to 'README.txt' didn't apply cleanly. The temporary files have been left in '/tmp/reviewboard.FtaN0j' for debugging purposes. `patch` returned: patching file /tmp/reviewboard.FtaN0j/tmpEtmkDI Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file /tmp/ reviewboard.FtaN0j/tmpEtmkDI-new.rej
When I open the file which was saved at /tmp/reviewboard.FtaN0j/ tmpEtmkDI-new I can see the HTML code from BitBucket.org which presents Log in forms, so no wonder the patching fails.
On Fri, Dec 9, 2011 at 12:03 AM, Nikita Zhuk <nikita.z...@gmail.com> wrote: > I'm using ReviewBoard 1.6.3 and my repositories are hosted at > BitBucket as private repositories. I have configured my repository in > the admin section of the RB by using HTTP URL and by entering my > BitBucket user name and password. I can submit review requests, upload > diffs and view raw diffs ("Download Diff") successfully, but when I > click "View Diff" button on the review page, I get the following stack > trace:
> The patch to 'README.txt' didn't apply cleanly. The temporary files > have been left in '/tmp/reviewboard.FtaN0j' for debugging purposes. > `patch` returned: patching file /tmp/reviewboard.FtaN0j/tmpEtmkDI Hunk > #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file /tmp/ > reviewboard.FtaN0j/tmpEtmkDI-new.rej
> Traceback (most recent call last): > File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ > reviewboard/diffviewer/views.py", line 151, in view_diff > interdiffset, highlighting, True) > File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ > reviewboard/diffviewer/diffutils.py", line 1071, in get_diff_files > large_data=True) > File "/Library/Python/2.7/site-packages/Djblets-0.6.14-py2.7.egg/ > djblets/util/misc.py", line 156, in cache_memoize > data = lookup_callable() > File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ > reviewboard/diffviewer/diffutils.py", line 1070, in <lambda> > enable_syntax_highlighting)), > File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ > reviewboard/diffviewer/diffutils.py", line 552, in get_chunks > new = get_patched_file(old, filediff) > File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ > reviewboard/diffviewer/diffutils.py", line 374, in get_patched_file > return patch(filediff.diff, buffer, filediff.dest_file) > File "/Library/Python/2.7/site-packages/ReviewBoard-1.6.3-py2.7.egg/ > reviewboard/diffviewer/diffutils.py", line 242, in patch > (filename, tempdir, patch_output)) > Exception: The patch to 'README.txt' didn't apply cleanly. The > temporary files have been left in '/tmp/reviewboard.FtaN0j' for > debugging purposes. > `patch` returned: patching file /tmp/reviewboard.FtaN0j/tmpEtmkDI > Hunk #1 FAILED at 1. > 1 out of 1 hunk FAILED -- saving rejects to file /tmp/ > reviewboard.FtaN0j/tmpEtmkDI-new.rej
> When I open the file which was saved at /tmp/reviewboard.FtaN0j/ > tmpEtmkDI-new I can see the HTML code from BitBucket.org which > presents Log in forms, so no wonder the patching fails.
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).
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:
> 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:
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/
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:
> 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/