开发者

Workflow for using Plastic SCM with public code hosting services

Is there a straightforward workflow to use P开发者_运维百科lastic SCM in-house while using one of the popular code hosting services like github or Bitbucket preferrably without requiring "double bookkeeping"?


As VonC pointed, there's no straightforward way to do it right now with 3.0 (unless you do a "little bit" of scripting) but we're working on it as one of the core features in the upcoming 4.0.

Today, the internal 4.0 release (find some screenshots here) is able to do synchronization using fast-export/fast-import. For instance:

  • fast-export from git (saving the export marks)
  • fast-import into Plastic SCM (generate your own import-marks to be reused)
  • do changes in Plastic 4.0
  • fast-export to Git from Plastic

And so on.

The limitation, of course, is that using this approach you can't handle concurrent changes made at both sides.

That's why we're working on a real "bi-directional synch".

Plastic 4.0 will be a major change since we move from our "dynamic dag" into a static one (like Git), which will make communication a lot easier.

We're already using it internally for Plastic development (moved a few weeks ago from 3.0 to 4.0), but it is still under testing, development and so on.

Watch the new screenshots of the Distributed Branch Explorer, one of the great enhancements to unveil what's behind the evolved core...


They might not be a "straightforward" workflow yet, in term of round-trip conversion between a Plastic SCM repo and a Git repo.
See the answer from pablo in this thread:

> Intrigued enough about Plastic to try and evaluate it, but would want to start off by importing some git projects (some of mine, some bigger projects checked out from github)

> So - is there a way to import a git repository, complete with all commits, branches, tags, etc?

Right now the best way would be to move from git into svn and then import from there.

Our plan is to have a bi-directional synchronization with Git in a few months, but it is not yet there so since you want to start using Plastic now I'd better go for a svn import or simply importing a working copy...

That doesn't mean you cannot use a DVCS repo right within your Plastic SCM workspace, but unless you do a strict "double bookkeeping" (that you don't want), you will only commit in the DVCS (Git or Mercurial) repo only the significant commits/changesets you want to push back to a GitHub/bitbucket.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜