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

incorrect handling of revesion keywords

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: all
    • Fix Version/s: unscheduled
    • Component/s: cmdline client
    • Labels:
      None

      Description

      When I'm doing "svn diff" on newly added file, incorrect revisions are used.
      Please take a look at the following log:
      
      ****************
      
      nick@norlov-1:~/svn_test$ svnadmin create repos/test
      nick@norlov-1:~/svn_test$ cd wc/
      nick@norlov-1:~/svn_test/wc$ svn co file:///home/nick/svn_test/repos/test/
      Checked out revision 0.
      nick@norlov-1:~/svn_test/wc$ ls
      test
      nick@norlov-1:~/svn_test/wc$ cd test/
      nick@norlov-1:~/svn_test/wc/test$ echo file1 > file1
      nick@norlov-1:~/svn_test/wc/test$ svn add file1
      A         file1
      nick@norlov-1:~/svn_test/wc/test$ svn commit
      Adding         file1
      Transmitting file data .
      Committed revision 1.
      nick@norlov-1:~/svn_test/wc/test$ echo file2 > file2
      nick@norlov-1:~/svn_test/wc/test$ svn add file2
      A         file2
      nick@norlov-1:~/svn_test/wc/test$ svn commit
      Adding         file2
      Transmitting file data .
      Committed revision 2.
      nick@norlov-1:~/svn_test/wc/test$ svn diff -r PREV file2
      Index: file2
      ===================================================================
      --- file2       (revision 0)
      +++ file2       (revision 2)
      @@ -0,0 +1 @@
      +file2
      nick@norlov-1:~/svn_test/wc/test$ svn diff -r COMMITTED file2
      nick@norlov-1:~/svn_test/wc/test$ svn diff -r PREV:COMMITTED file2
      svn: 'file:///home/nick/svn_test/repos/test/file2' was not found in the
      repository at revision 1
      
      ****************
      
      As you can see when I'm doing "svn diff -r PREV" last revision of file is
      compared to revision 0 and when I'm doing "svn diff -r PREV:COMMITTED" last
      revision is compared with revision 1 and error is issued.
      
      I would expect to see at least consistant error free behavior in these two
      cases. And probably in both cases revision 1 should be used as PREV revision.
      
      P.S. DEFECT gives BFI for me, thats why I put priority P1.
      

      Original issue reported by nick

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: