code_junkie

TFS to SVN

Nov 13th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. public Tfs2SvnConverter(string tfsPath, string svnPath, bool createSvnFileRepository, int fromChangeset, string workingCopyPath, string svnBinFolder, bool doInitialCheckout, string tfsUsername, string tfsPassword, string tfsDomain)
  2. {
  3. ParsePaths(tfsPath, svnPath);
  4. this._tfsServer = "http://<tfs domain>:8080/tfs/<team project collection name>";
  5. this._tfsRepository = "<remote source location>"; // "$/<team project name>/..."
  6. //this._tfsExporter = new TfsExporter(this._tfsServer, this._tfsRepository, workingCopyPath, fromChangeset, tfsUsername, tfsPassword, tfsDomain);
  7. TfsClient.Provider.Connect(this._tfsServer, this._tfsRepository, workingCopyPath, fromChangeset, tfsUsername, tfsPassword, tfsDomain);
  8.  
  9. this._svnImporter = new SvnImporter(this._svnRepository, workingCopyPath, svnBinFolder);
  10. _createSvnFileRepository = createSvnFileRepository;
  11. _doInitialCheckout = doInitialCheckout;
  12. _workingCopyPath = workingCopyPath;
  13.  
  14. HookupTfsExporterEventHandlers();
  15. }
Add Comment
Please, Sign In to add comment