Crucible: unrecognised diff format. expected diff hunk descriptor but found

At qualys we use crucible. Great tool though it can sometimes be a PITA… Like today for example.
I had a pretty big patch made from several svn revs:

svn diff -r 23284:23747 -x -b > ~/tmp/code.patch

When I tried to upload that to crucible, I received the msg: "Error adding patch: Unrecognised diff format. Expected diff hunk descriptor but found:"

It's a known issue from atlassian that has been alive for more than 2 yrs: https://jira.atlassian.com/browse/CRUC-6114.

Thanks for fixing your bugs so fast btw...

Anyways the pb comes from the fact that the diff command gathers metadata as well as code changes.

Turns out there is a great tool called filterdiff, part of the patchutils package that cleans that up well.

brew install patchutils
filterdiff --clean code.patch > clean.patch

Crucible should stop whining after that

One thought on “Crucible: unrecognised diff format. expected diff hunk descriptor but found

  1. http://www.raisethebarnewcastle.co.uk/prostomag/2757e-80158-hamilton75.htmlハミルトン 腕時計 レディース ダイヤ,ハミルトン カーキ クオーツ,ニナリッチ 財布 年齢層
    ハミルトン 腕時計 メンズ 人気,ハミルトン レディース 自動巻き,ニナリッチ 香水 アーモンド http://hammbonecatering.com/prostomag/29c8f-90159-hamilton81.html

Comments are closed.