Using PlasticSCM (or any DVCS client) to connect to TFS

自古美人都是妖i 提交于 2019-12-06 06:43:47

问题


Has anyone used the PlasticSCM client tools to work against a TFS repository?

Basically my current client is using the new hosted TFS for version control (not TFS-Git, just standard TFS), but I have seen the light of distributed version control systems on previous projects and now can't go back!

Is there a recommended approach to getting a DVCS style experience with a standard TFS backend?

I know I am asking a lot, but I have done some research and there seems to be hints that it maybe possible (to sync PlasticSCM with TFS) all over the PlasticSCM forums, but I have found nothing concrete.

This youtube video looks very promising. With checkins made to Plastic appearing in TFS and vice versa (via a command line sync operation). http://www.youtube.com/watch?v=AJKF3cjg7jA


回答1:


Yes, you can use Plastic SCM to sync with TFS. But so far you've to rely on the command line.

It is able to keep one branch in sync since keeping more than one gets complicated since TFS doesn't do the same sort of branch and merge tracking that Plastic does. In fact, Plastic can be fully synced with Git http://www.plasticscm.com/gitsync/index.html pushing and pulling branches, merges and concurrent changes, merge tracking and everything.

In the case of TFS you need to download Plastic SCM 4.2 (or higher) which is the "labs version" (but fully stable) that includes the new functionality.

Once you do that, the command is rather simple:

$ cm sync /main@codice@localhost:8084 tfs http://tfsserver:8080/tfs\\DefaultCollection $/Project --user=tester --pwd=tester

The user argument accepts domain names (--user=Domain\username).

Check the following graphic with more details about how it works:




回答2:


Why not use git locally and use git-tf to sync with TFS version control?




回答3:


Got the correct syntax for CodePlex after much experimenting:

cm sync /main@<repo>@<plasticserver>:8087 tfs https://tfs.codeplex.com:443/tfs/TFS04 
$/<project> --user=snd\<user>_cp --pwd=<pass>

where:

  • /main is the (default) PlasticSCM branch to sync.
  • <repo> is the name of the PlasticSCM repository to sync.
  • <plasticserver>:8087 is the name of the local PlasticSCM server and port number.
  • TFS04 is the name of the collection (you can get it from the Connect link on the Source Code tab, It varies per project).
  • <project> is the CodePlex project name (you can get it from the Connect link on the Source Code tab, it is case sensitive).
  • snd\<user>_cp is the username, is the normal login name for codeplex, snd\ is a domain prefix and _cp a username suffix.
  • <pass> is the codeplex password that belongs to <user>.


来源:https://stackoverflow.com/questions/16576313/using-plasticscm-or-any-dvcs-client-to-connect-to-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!