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

svn diff does not use /dev/null as filename for added or removed files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • ---
    • 1.7.0
    • libsvn_diff
    • None

    Description

      svn diff is not usable to generate patches between revisions that either add or remove files.
      Added files must have /dev/null as filename in the ^+++ line.
      Removed files must have /dev/null as filename in the ^--- line.
      patch(1) will recognize this and either refuse to append to an existing file,
      or it will unlink and deleted file.
      
      Currently the ^--- and ^+++ lines will just contain the filename for both.
      Looking through the 1.3 sources, there is appearently no support for handling add/deletes.
      

      Original issue reported by olh

      Attachments

        1. 1_svn-diff.sh
          2 kB
          Subversion Importer

        Issue Links

          Activity

            People

              Unassigned Unassigned
              subversion-importer Subversion Importer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: