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

svn cleanup fails on read-only files (windows)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.10.2
    • 1.12.0
    • cmdline client
    • None
    • Windows 7, using the 1.10.3 command line tools (from TortoiseSVN).

    Description

      Discussed on mailing list: https://svn.haxx.se/users/archive-2019-02/0024.shtml

      Our build script copies files and folders into the source tree before building the application and installer applications.  The copied-in files and folders are set as read-only by another script and svn:ignored:

      root
       > folder 1 (svn:ignore *)
          > folder 2
             > folder 3
      

      When I run svn cleanup using both remove flags, svn fails with the error:

      svn: E720005: Can't remove directory 'root\folder1\folder2\folder3': Access is denied.
      

      My workaround is to add to my script to clear the read-only flag before running svn cleanup.

      As Brane replied:

       Yes, it's worth fixing, because it's a bug. If we have the --remove-unversioned option and it happens not to work because we fail to clear the read-only bit on files within unversioned directories, well, we should fix that.

      Attachments

        Activity

          People

            brane Branko Čibej
            mark.e.cooke Mark Cooke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: