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

need to tighten 'cp' behaviors

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 0.14.0
    • src
    • None
    • other

    Description

      Right now, 'svn cp URL URL' behaves differently when the source is a
      file or a directory.  In the case of a file,
      
           'svn cp http://..../file.txt  http://.../somedir'
      
      ...will produce an error if somedir/file.txt already exists in the
      destination.  That is, it prevents an accidental overwrite.
      
      In the case of a dir, however,
      
           'svn cp http://.../dir1  http://.../somedir'
      
      ...will silently overwrite any pre-existing somedir/dir1/ in the
      destination.
      
      All of the "prevent overwrite" enforcement is happening in the client
      libraries;  the fs just overwrites things when your run svn_fs_copy().
      
      Whatever we want, we need to choose a policy, justify it, and stick
      with it.  We also need to verify that the behaviors we want are
      happening with file:/// URLs, and also when we run 'svn cp' in the
      working copy.  (Really, we should test all four use-cases of 'svn cp'.)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sussman Ben Collins-Sussman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: