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._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(); }
public Tfs2SvnConverter(string tfsPath, string tfsRepo, string svnPath, bool createSvnFileRepository, int fromChangeset, string workingCopyPath, string svnBinFolder, bool doInitialCheckout, string tfsUsername, string tfsPassword, string tfsDomain, Encoding encoding) { this.tfsServer = tfsPath; this.tfsRepository = tfsRepo; this.svnRepository = svnPath; Log.Info("TFS SERVER: " + this.tfsServer); Log.Info("TFS REPO: " + this.tfsRepository); Log.Info("SVN REPO: " + this.svnRepository); this.tfsClient = new TfsClientProvider(this.tfsServer, this.tfsRepository, workingCopyPath, fromChangeset, tfsUsername, tfsPassword, tfsDomain); this.svnImporter = new SvnImporter(this.svnRepository, workingCopyPath, svnBinFolder, encoding); this.createSvnFileRepository = createSvnFileRepository; this.doInitialCheckout = doInitialCheckout; this.workingCopyPath = workingCopyPath; this.HookupTfsExporterEventHandlers(); }