簡體   English   中英

TFS到SVN

[英]TFS to SVN

您能否推薦任何工具將源(帶歷史記錄)從TFS遷移到SVN?

你看過tfs2svn了嗎?

tfs2svn是一個Windows應用程序,它將Team Foundation Server(TFS)存儲庫轉換為Subversion(SVN)存儲庫,保留歷史記錄,分支和提交信息。

我們正在將TFS 2010集合遷移到svn中。 為了使它適用於我們,我需要下載和修改TFS2SVN的來源,以便它理解我們制作的集合。

目前我只是對這些值進行了硬編碼,因為我們只會使用它兩次。 我們修改了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