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

Show only changes of copied files in "svnlook diff"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 1.3-consider
    • svnlook
    • None

    Description

      (I'm using Subversion 1.0.9 on this server, but I believe this behavior has not changed since.)
      
      Currently, svnlook diff shows every line as added on a copied file. It displays the headers I would 
      expect:
      
      Copied: NEWPATH (from rev OLDREV, OLDPATH)
      ===============================================================
      ====
      --- OLDPATH        OLDDATE (rev OLDREV)
      +++ NEWPATH        NEWDATE (rev NEWREV)
      
      but the actual diff is not consistent with that. Rather than showing the changes between 
      OLDPATH@OLDREV and NEWPATH@NEWREV, it shows the differences between an empty file and 
      NEWPATH@NEWREV.
      
      This is quite odd, especially since the diff output is skipped entirely if the file is not changed. It seems 
      the intent was to show changes in the file as it was copied, but that's not what it does.
      
      I'd like to see the diff reflect the header. I get HTMLized color diff emails with SVN::Notify, which uses 
      "svnlook diff" internally. It'd be more useful to me to see the changes in the copied file, as mailer.py 
      does.
      
      Otherwise, the header should be changed to be accurate. Maybe there could be a commandline 
      argument to switch between the two, if others find this behavior more useful.
      

      Original issue reported by slamb

      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: