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

svn diff --diff-cmd is not used for changes in properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.4.x
    • unscheduled
    • libsvn_diff
    • None

    Description

      The diff command specified with the option --diff-cmd (and diff options
      specified with -x or --extensions) is used just for changes in file contents,
      but not for changes in file properties. For example, when this is the default
      output:
      
      $ svn di
      Index: paper.tex
      ===================================================================
      --- paper.tex   (revision 920)
      +++ paper.tex   (working copy)
      @@ -12,6 +12,13 @@
       \usepackage{url}
      
      +\usepackage{svn-multi}
      +\svnidlong
      +{$LastChangedBy$}
      +{$LastChangedRevision$}
      +{$LastChangedDate$}
      +{$HeadURL$}
      +
       \usepackage{listings}
       \lstset{language=[95]Ada,
               basicstyle=\small\sffamily,
      
      Property changes on: paper.tex
      ___________________________________________________________________
      Name: svn:keywords
         - Rev Id
         + Rev Id LastChangedBy LastChangedRevision LastChangedDate HeadURL
      
      
      
      
      If a specific diff command is added (or some diff options), the svn diff output
      applies it just for changes in file contents, not property changes:
      
      
      
      $  svn di --diff-cmd "colordiff"  --extensions "-d"
      Index: paper.tex
      ===================================================================
      14a15,21
      > \usepackage{svn-multi}
      > \svnidlong
      > {$LastChangedBy$}
      > {$LastChangedRevision$}
      > {$LastChangedDate$}
      > {$HeadURL$}
      >
      
      Property changes on: paper.tex
      ___________________________________________________________________
      Name: svn:keywords
         - Rev Id
         + Rev Id LastChangedBy LastChangedRevision LastChangedDate HeadURL
      
      
      
      This is mainly a problem when this output must be processed using a external
      utility.
      

      Original issue reported by suruena

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: