Search code examples
svnrepositorysvnadmin

moving repository to another subdirectory in svn


I will start by saying svndumpfilter failed (using this solution: Moving SVN repositories data with history as subfolders into another repository) I got the error:

At line:1 char:30
+ svndumpfilter include \trunk < E:\tmp\test1.dump > E:\tmp\test1filter.dump
+                              ~
The '<' operator is reserved for future use.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RedirectionNotSupported

after executing:

svndumpfilter include \trunk < E:\tmp\test1.dump > E:\tmp\test1filter.dump

My problem: I have a few projects as separate repositories as such:

RootDir -
     project1
     project2
     project3
     project4
     project5
     project6

3 of the projects are for the same company, so I want to move them like this:

RootDir -
     project1
     project2
     companyX -
         project3
         project5
         project6
     project4

i.e. I want to move multiple repositories to reside as subfolders in one main repository.

The repository is in a windows server 2012, and I use remote desktop to run svn command prompt on it.

I'm out of ideas


Solution

  • The problem was i the Windows PowerShell of Windows Server 2012.

    I downloaded Console 2 and used it instead of the Windows shell.

    The solution suggested in "Moving SVN repositories data with history as subfolders into another repository" did the trick.

    for my needs I didn't even need the svndumpfilter part.