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

Bogus output from svn diff on two unrelated file URLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 0.22
    • src
    • None

    Description

      Ben Collins-Sussman asked me to file this issue.
      
      > > Second -- Eric's original bug.  He ran 'svn diff' on two unrelated
      > > file URLs.  Consistent with dir_delta, he was shown two complete diffs
      > > representing a delete and an add.  In Chicago, we're all three in
      > > agreement that this should never happen.  We don't care about how it's
      > > implemented, or whether it "makes sense" given the implementation --
      > > it's just wrong output.  None of us could come up with a *single*
      > > use-case where a user would ever want or expect this behavior, even
      > > if they knew svn's internals inside and out.  This should be filed
      > > as a bug.
      
      I thought someone mentioned that we have special-case code for diffing
      a single file, since dir_delta() won't work on a lone file.  My
      "first" proposal may or may not fix this problem, I'm not sure till I
      investigate implementations.  I just wanted to point out that this bug
      has a life of its own, no matter how it ends up fixed.
      

      Original issue reported by epg

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: