Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-4297

'svn patch' single line patch mismatch deletes target file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.x
    • 1.8.0
    • libsvn_diff
    • None

    Description

      A simple patch
      
      
      
      Index: test
      
      ===================================================================
      
      --- test\t(revision 1)
      
      +++ test\t(working copy)
      
      @@ -1 +1 @@
      
      -foo
      
      \\ No newline at end of file
      
      +bar
      
      \\ No newline at end of file
      
      
      
      
      
      when applied on a file with as only body a completely different line, will 
      delete the file.
      
      
      
      See patch_tests.py's single_line_mismatch()
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhuijben Bert Huijben
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: