Uploading a patch file fails with 'Unrecognised diff format' error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Attempting to upload a patch file to Crucible for a review results in the following error on screen:

Error adding patch: Unrecognised diff format. Expected diff hunk descriptor but found: 

Cause

This is a known bug:

CRUC-6114 - Getting issue details... STATUS

In keeping with Atlassian's Bug Fixing Policy, please log in and vote on the issue.

Resolution

Remove similar entries from the patch file and attempt to upload it again:

Index: java/generic-file.xml
===================================================================
--- java/generic-file.xml	(revision 0)
+++ java/generic-file.xml	(working copy)

Property changes on: java/generic-file.xml
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision URL

Last modified on Aug 21, 2014

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.