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

svndumpfilter forgetting parent dirs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: all
    • Fix Version/s: unscheduled
    • Component/s: svndumpfilter
    • Labels:
      None

      Description

      When using svndumpfilter to only include a "deep" subtree the filtered dump
      lacks creation of the parent directory(ies).
      
      For instance:
      
      Start with a new repository and create the following hierarchy:
      
      a -- b -- d
        |
        +- c
      
      
      Create a dump filtered to include only the a/b hierarchy:
      
      $ svnadmin dump repos | svndumpfilter include a/b >dump.txt"
      
      
      Import the filtered dump into a newly created repository:
      
      $ svnadmin load filtered <dump.txt
      <<< Started new transaction, based on original revision 1
           * adding path : a/b ...svn: File not found: transaction '1', path 'a/b'
      $
      
      
      A workaround should be to create the a directory before importing:
      
      $ svnadmin load filtered <dump.txt
      <<< Started new transaction, based on original revision 1
           * adding path : a/b ... done.
           * adding path : a/b/d ... done.
       
      ------- Committed new rev 2 (loaded from original rev 1) >>>
      

      Original issue reported by gabuzo

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: