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

svn diff -c N on a file added in revision N does not create patch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.x
    • 1.7.2
    • libsvn_diff
    • None
    • Mac OS X

    Description

      * SUMMARY
      When running "svn diff -c N file" for "file" which was created in revision "N", an error occurs instead of 
      returning a patch:
      
      svn: Unable to find repository location for 'file' in revision N
      
      * STEPS TO REPRODUCE
      See attached recipe.
      
      * EXPECTED RESULTS
      A patch of the newly added file should be returned on stdout.
      
      * ACTUAL RESULTS
      An error occurs (see above).
      
      * REGRESSION
      This has never worked in Subversion to my knowledge.
      
      * NOTES
      - See mailing list thread in URL field.
      - This should also work for newly added directories (included in recipe attached) where a patch should 
      be generated for all files and directories added below it.
      - This should work for "svn diff -r M:N" as well where M = N - 1 (which is equivalent to "svn diff -c N").
      - Should this work for "svn diff -r M:N" where 0 <= M < N - 1?
      

      http://subversion.tigris.org/servlets/BrowseList?list=dev&by=thread&from=575913

      Original issue reported by ddkilzer

      Attachments

        1. 1_svn-diff-c-added-file.sh
          0.8 kB
          Subversion Importer
        2. 2_issue-2873-wip.diff
          10 kB
          Stefan Sperling

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: