empty new file in svn diff

Help
2009-05-29
2013-06-03
  • Chi-Hua Chen
    Chi-Hua Chen
    2009-05-29

    I am having trouble getting codestriker (1.9.8) to display svn diffs containing newly added empty files as colored diff. The content of the diff file is displayed as is instead.

    I don't see any option I can give to svn to have it not putting empty files into the diff. Is there a workaround in codestriker? Or has it been fixed in 1.9.9?

    The empty files are baselines for tests that don't generate any output.

    Index: empty.txt

    Index: more.txt

    --- more.txt    (revision 0)
    +++ more.txt    (revision 0)
    @@ -0,0 +1 @@
    +/* Some content */

     
    • David Sitsky
      David Sitsky
      2009-05-31

      I am really surprised subversion is creating diffs like this.  Normally even blank files will be properly formatted.  I'll add a new test case for this so that 1.9.10 will have this fixed.

       
      • David Sitsky
        David Sitsky
        2009-06-01

        Ok - its been fixed now.  If you updated the lib/Codestriker/FileParser/SubversionDiff.pm file with http://codestriker.cvs.sourceforge.net/viewvc/\*checkout*/codestriker/codestriker/lib/Codestriker/FileParser/SubversionDiff.pm?revision=1.14, then all should be well.

        This will appear in 1.9.10.

         
    • Chi-Hua Chen
      Chi-Hua Chen
      2009-06-03

      Thanks. It works now (with 1.9.8).