TFS to SVN

前端 未结 2 1457
天命终不由人
天命终不由人 2020-12-25 13:34

Can you recommend any tool to migrate sources(with history) from TFS to SVN?

相关标签:
2条回答
  • 2020-12-25 14:09

    We are migrating TFS 2010 collections into svn. To make it work for us I needed to download and modify the source of TFS2SVN so that it understood the collections we had made.

    At the moment I just hard coded the values because we are only going to use this twice. We modified tfs2svn\trunk\Colyar.SourceControl.Tfs2Svn\Tfs2SvnConverter.cs as follows

    public Tfs2SvnConverter(string tfsPath, string svnPath, bool createSvnFileRepository, int fromChangeset, string workingCopyPath, string svnBinFolder, bool doInitialCheckout, string tfsUsername, string tfsPassword, string tfsDomain)
        {
            ParsePaths(tfsPath, svnPath);
            this._tfsServer = "http://<tfs domain>:8080/tfs/<team project collection name>";
            this._tfsRepository = "<remote source location>"; // "$/<team project name>/..."
            //this._tfsExporter = new TfsExporter(this._tfsServer, this._tfsRepository, workingCopyPath, fromChangeset, tfsUsername, tfsPassword, tfsDomain);
            TfsClient.Provider.Connect(this._tfsServer, this._tfsRepository, workingCopyPath, fromChangeset, tfsUsername, tfsPassword, tfsDomain);
    
            this._svnImporter = new SvnImporter(this._svnRepository, workingCopyPath, svnBinFolder);
            _createSvnFileRepository = createSvnFileRepository;
            _doInitialCheckout = doInitialCheckout;
            _workingCopyPath = workingCopyPath;
    
            HookupTfsExporterEventHandlers();
        }
    
    0 讨论(0)
  • 2020-12-25 14:30

    Have you looked at tfs2svn?

    tfs2svn is a Windows application that converts a Team Foundation Server (TFS) repository into a Subversion (SVN) repository, preserving the history, branches, and commit information.

    0 讨论(0)
提交回复
热议问题