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

svn_io_copy_dir_recursively should copy directory attributes.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.x
    • nonblocking
    • libsvn_subr
    • None
    • Windows 2000

    Description

      On Windows systems, 'svn copy dir1 dir2' will result in a dir2 which has its
      .svn folder lacking the HIDDEN attribute.  I tracked this down to
      svn_io_copy_dir_recursively, which has this very revealing comment:
      
        /* Create the new directory. */
        /* ### TODO: copy permissions? */
        SVN_ERR (svn_io_dir_make (dst_path, APR_OS_DEFAULT, pool));
      
      To answer the question posed, "Yes.  We should be copying permissions."  But
      even if we don't copy all the permissions, can we at least handle directories
      whose basename is ".svn" by calling svn_io_dir_make_hidden() on their copies?
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: