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

'svn patch --reverse-diff' chokes on patches which add files with props

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.x
    • Fix Version/s: 1.7.0
    • Component/s: libsvn_client
    • Labels:
      None

      Description

      You cannot use 'svn patch --reverse-diff' to undo the addition of a file that
      has properties in the way that you can for new files which do not also have
      properties.  The process fails in different ways depending on whether the file
      in question was previously committed.  If so, the patch application fails with:
      
      svn: E155023: Can't set properties on
      '/home/cmpilato/projects/subversion/trunk/subversion/tests/cmdline/svn-test-work/working_copies/patch_tests-35/newfile':
      invalid status for updating properties.
      
      (Presumably because Subversion has scheduled the file for deletion per the
      removal of all the lines of content from it.)
      
      If the file in question is merely scheduled for addition prior to the patch
      application, the error message changes:
      
      svn: E155010: The node
      '/home/cmpilato/projects/subversion/trunk/subversion/tests/cmdline/svn-test-work/working_copies/patch_tests-34/newfile'
      was not found.
      
      (Presumably because the "deletion" of the file per the removal of all its
      content lines results, in this case, in the file simply being removed from
      version control altogether.)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cmpilato C. Michael Pilato
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: