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

svn diff does not include deleted directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.x
    • 1.7.x
    • cmdline client
    • None

    Description

      svn diff does not include diffs for files in deleted directories. It does
      include added files. To reproduce, just do
      
      svn diff -rN-1:N URL
      
      on any revision where a directory (with files in it) was removed.
      
      This is inconsistent, and does not produce good patches. Workarounds include
      doing the reverse diff and then reversing the patch, but that doesn't work if
      the change involved both added and removed directories - a good deal of
      hand-editing is needed.
      The inability to diff the addition or deletion of a specific directory does not
      help here.
      
      I found a discussion about this
      (http://svn.haxx.se/dev/archive-2004-03/0110.shtml) but I could find no prior
      filed issue about the problem.
      
      A related, smaller inconsistency: Deleted empty files are not reported either
      (while added empty files are).
      

      Original issue reported by mattiase

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: