简体   繁体   English

TFS到SVN

[英]TFS to SVN

您能否推荐任何工具将源(带历史记录)从TFS迁移到SVN?

Have you looked at tfs2svn ? 你看过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. tfs2svn是一个Windows应用程序,它将Team Foundation Server(TFS)存储库转换为Subversion(SVN)存储库,保留历史记录,分支和提交信息。

We are migrating TFS 2010 collections into svn. 我们正在将TFS 2010集合迁移到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. 为了使它适用于我们,我需要下载和修改TFS2SVN的来源,以便它理解我们制作的集合。

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 我们修改了tfs2svn \\ trunk \\ Colyar.SourceControl.Tfs2Svn \\ Tfs2SvnConverter.cs如下

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();
    }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM