简体   繁体   中英

Mercurial and particular files branching

The context: i have a project, that contains configs/ directory, which contains (surprise-surprise!) a set of config files: database.php , facebook.php , twitter.php , cache.php , etc

What I did in svn : I have created branches per specific file and made changes there (changed database connections, facebook API keys, etc). So they were stored in my private branch.

Now I'm trying to migrate to "modern" nowadays DSCM - Mercurial. And I cannot get any possibility of doing the same.

Any ideas?

根据irc.freenode.org上#mercurial的建议,我提到过要修改我的代码,以便可以从存储在另一个存储库中的单独目录中加载个人配置。

I would use hg branch to create a private testing branch as well as a development branch and a release branch.

hg branch mock_settings

hg branch dev

Make your private testing changes on mock_settings , merging from dev to mock_settings to do a settings test.

This compartmentalizes test settings from development from release.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM