When I move or delete files in my svn tree, reviewboard chokes on the svn
diff file (it looks like it's trying to actually do diffs on files that are
no longer there).
What's the URL of the page containing the problem?
http://reviewboard.glgdev.com/r/225/diff/#index_header
What steps will reproduce the problem?
1. Delete a couple source files, or move them from one package (my source
tree is in java).
2. submit a review
You will see output looking something like the following when you try to
view the diff in reviewboard:
The patch to
'svn://glgdevss01/GLG_JAVA_REPO/sandbox/cod/backend/src/java/com/glgroup/entityextraction/DrugFinder.java'
didn't apply cleanly. The temporary files have been left in
'/tmp/reviewboard.FixWRp' for debugging purposes. `patch` returned:
patching file /tmp/reviewboard.FixWRp/tmpdHbLxX Reversed (or previously
applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1
out of 1 hunk ignored -- saving rejects to file
/tmp/reviewboard.FixWRp/tmpdHbLxX-new.rej
Traceback (most recent call last):
File "/home/tree/reviewboard/reviewboard/diffviewer/views.py", line 81,
in view_diff
files = get_diff_files(diffset, None, interdiffset, highlighting)
File "/home/tree/reviewboard/reviewboard/diffviewer/diffutils.py", line
561, in get_diff_files
enable_syntax_highlighting)
File "/home/tree/reviewboard/reviewboard/diffviewer/diffutils.py", line
500, in generate_files
lambda: get_chunks(filediff.diffset,
File "/home/tree/reviewboard/reviewboard/djblets/util/misc.py", line 47,
in cache_memoize
data = lookup_callable()
File "/home/tree/reviewboard/reviewboard/diffviewer/diffutils.py", line
503, in <lambda>
enable_syntax_highlighting))
File "/home/tree/reviewboard/reviewboard/diffviewer/diffutils.py", line
299, in get_chunks
new = get_patched_file(old, filediff)
File "/home/tree/reviewboard/reviewboard/diffviewer/diffutils.py", line
212, in get_patched_file
return patch(filediff.diff, buffer, filediff.dest_file)
File "/home/tree/reviewboard/reviewboard/diffviewer/diffutils.py", line
110, in patch
(filename, tempdir, p.stdout.read()))
Exception: The patch to
'svn://glgdevss01/GLG_JAVA_REPO/sandbox/cod/backend/src/java/com/glgroup/entityextraction/DrugFinder.java'
didn't apply cleanly. The temporary files have been left in
'/tmp/reviewboard.FixWRp' for debugging purposes.
`patch` returned: patching file /tmp/reviewboard.FixWRp/tmpdHbLxX
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file
/tmp/reviewboard.FixWRp/tmpdHbLxX-new.rej
I'm running windows xp and using firefox.