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

svn patch opens the patch file too many times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk
    • 1.7.0
    • libsvn_diff
    • None

    Description

      svn patch opens the patch file three times for each hunk in the patch.
      
      This means that with a file descriptor limit of 1024, trying to apply a patch
      with more than about 341 hunks (a bit less in practice due to other open files)
      fails with an error: svn: Can't open file 'test.diff': Too many open files
      
      Since the implementation details of svn_hunk_t are opaque to the patch code in
      libsvn_client, it is possible to fix this problem locally within the diff parser
      in libsvn_diff/parse-diff.c.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            stsp Stefan Sperling
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: