Issue 658: Error : The patch to '<filepath>' didn't apply cleanly.
http://code.google.com/p/reviewboard/issues/detail?id=658

New issue report by sudarsan:
*NOTE: Do not post confidential information in this bug report.*

What's the URL of the page containing the problem?

http://reviewboard.eng.vmware.com/r/43966/diff/#index_header

What steps will reproduce the problem?
1. I have a change that moves files from one directory to another (i.e.
integrate/delete)
2. generated diffs using p5 diff -u -c ...
3. Upload the diffs and try to view the diffs.

What is the expected output? What do you see instead?

Normal diffs - what I see is
http://reviewboard.eng.vmware.com/r/43966/diff/#index_header (paraphrased
below)

What operating system are you using? What browser?
Windows XP / Firefox 3.0.1


Please provide any additional information below.

The output is like the following:


The patch to '<filepath>' didn't apply cleanly. The temporary files have
been left in '/tmp/reviewboard.U-4jPA' for debugging purposes. `patch`
returned: patching file /tmp/reviewboard.U-4jPA/tmpI632Lt patch: ****
malformed patch at line 5:

Traceback (most recent call last):
   File "/root/reviewboard/diffviewer/views.py", line 82, in view_diff
     files = get_diff_files(diffset, None, interdiffset, highlighting)
   File "/root/reviewboard/diffviewer/diffutils.py", line 577, in  
get_diff_files
     enable_syntax_highlighting)
   File "/root/reviewboard/diffviewer/diffutils.py", line 502, in  
generate_files
     lambda: get_chunks(filediff.diffset,
   File "/root/reviewboard/djblets/util/misc.py", line 47, in cache_memoize
     data = lookup_callable()
   File "/root/reviewboard/diffviewer/diffutils.py", line 505, in <lambda>
     enable_syntax_highlighting))
   File "/root/reviewboard/diffviewer/diffutils.py", line 301, in get_chunks
     new = get_patched_file(old, filediff)
   File "/root/reviewboard/diffviewer/diffutils.py", line 214, in
get_patched_file
     return patch(filediff.diff, buffer, filediff.dest_file)
   File "/root/reviewboard/diffviewer/diffutils.py", line 112, in patch
     (filename, tempdir, patch_output))
Exception: The patch to '<filepath>' didn't apply cleanly. The temporary
files have been left in '/tmp/reviewboard.U-4jPA' for debugging purposes.
`patch` returned: patching file /tmp/reviewboard.U-4jPA/tmpI632Lt
patch: **** malformed patch at line 5:




Issue attributes:
        Status: New
        Owner: ----
        Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to