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

copy and mkdir should create intermediate directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • all
    • 1.5.0
    • libsvn_client
    • None

    Description

      When tagging something, e.g. tagging:
      
      http://host/repos/trunk
      
      as:
      
      http://host/repos/tags/customer1/r1
      
      ...the operation failed.  By looking through logs, I figured out that I had
      to make "tags", then "customer1", then "r1".
      
      My branch command was:
      
      svn copy http://host/repos/trunk http://host/repos/tags/customer1/r1 -m "my
      log message"
      
      It'd be nice to be able to create intermediate directories when branching like
      this?  It's not too bad manually, but a bit of pest to automate.  I've noticed 
      as well the "mkdir" can't create intermediate folders either, so when 
      operating directly on a URL, you tend to create several auto-committing 
      revisions in order to create the required directory structure.
      
      I personally favour maintaining the current behaviour by default, with an 
      option like --create-parent-dirs for copy/mkdir for those who wish this 
      behaviour.  It could be made a default behaviour if the user's subversion 
      config file had some sort of setting to make this the default behaviour.
      

      Original issue reported by cbrown

      Attachments

        1. 1_svn-mkdir-p.patch
          9 kB
          Subversion Importer
        2. 2_patch_mkdir_p_url.txt
          10 kB
          Subversion Importer

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: