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

small issue with "svn diff" output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • unscheduled
    • libsvn_delta
    • None
    • Windows 2000

    Description

      There is small issue with "svn diff" output for a files, having no
      newline character at the end.
      
       Please take a look at following subversion session (lines, prefixed
      with // are my comments):
      
      D:\9>svnadmin create d:\9\test
      
      D:\9>svn co file:///d:/9/test t
      Checked out revision 0.
      
      D:\9>cd t
      
      D:\9\t>touch A
      // Contents of file A should be:
      // AAA
      // BBB
      // CCC
      // without newline char at the end of file
      
      D:\9\t>touch B
      // Contents of file A should be:
      // 111
      // 222
      // 333
      // without newline char at the end of file
      
      D:\9\t>svn add A B
      A         A
      A         B
      
      D:\9\t>svn ci -m "Added files"
      Adding         A
      Adding         B
      Transmitting file data ..
      Committed revision 1.
      
      // Edit files:
      // In file A replace line BBB with DDD
      // In file B replace line 222 with 444
      
      D:\9\t>svn diff
      Index: A
      ===================================================================
      --- A   (revision 1)
      +++ A   (working copy)
      @@ -1,3 +1,3 @@
       AAA
      -BBB
      +DDD
       CCCIndex: B
      ===================================================================
      --- B   (revision 1)
      +++ B   (working copy)
      @@ -1,3 +1,3 @@
       111
      -222
      +444
       333
      D:\9\t>
      
      Please take a look at "svn diff" output, it lacks newline char at this
      place:
       CCCIndex: B
      
       It is not affect application work, but may confuse.
      

      Original issue reported by flying

      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: