开发者

SVN Best practice for a "branch" of your main product?

At my job we develop websites - however now we're going to make a "whitelabelled" version of a site, which basically means it's the same si开发者_Python百科te, however with a different logo and hosted on a different domain.

Also it'll have minor graphical differences, but overall the engine is the same.

My initial thought for keeping this in SVN, was to just make a branch for it - however I'm not quite certain if this could give me trouble later on.

Normally I keep my branches somewhat short lived - mainly used for developing a new feature, without disturbing trunk.

We need to be able to merge trunk changes into this "whitelabel" version, which I why I thought about branching it in the first place.

So what's the best way to archive this ?


When I've worked on a white-labelled website before, it's been built from the same source for every brand with a configuration parameter telling it what branding to use at runtime. However, you could also provide the common functionality and resources in a module that's imported into each of the branded version branches using svn externals, so that changes in the common code can be automatically tracked in each branding. So the branch for each brand just contains the brand-specific resources.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜