开发者

Capistrano, Mercurial and branches

It is my understanding that although Mercurial has support from branches, the community generally clone repos instead of creating branches. Similar to the Darcs model, unlike the Git model.

I'm deploying a Ruby on Rails app with Capistrano and there I'd like to separate the production from the development branch. Should I point Capistrano to a different repo or sho开发者_JAVA百科uld I use branches?

Has anyone used one model or the other of branching while dealing with Capistrano? Any problems with either?


yes mercurial supports several branching models cloning is probably the most common.

this certainly sounds like the ideal use of a named branch to me, but its ultimately a personal preference thing


In your config/deploy.rb put

set :branch, "your_branch"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜