开发者

SVN how to automatically commit into multiple branches?

开发者 https://www.devze.com 2023-01-25 13:51 出处:网络
I have like 1.0, 1.1, 1.2 branches and i want every commit that goesw into 1.0 to go automatically to 1.1 and 1.2 and every commit to 1.1 to go automatically get committed to 1.2

I have like 1.0, 1.1, 1.2 branches and i want every commit that goesw into 1.0 to go automatically to 1.1 and 1.2 and every commit to 1.1 to go automatically get committed to 1.2

is it possible to make all this in a single transaction and automatic开发者_StackOverflowally? can someone tell me how please? (can it be with example please?)


Yes and no. You can make it atomic if you checkout the whole repository (or at least the branches folder). It won't be automatic though. You will have to apply the changes your self to the other branches. The different branches presumably have different code (you said they were version branches), so applying the same fix to different branches may require different edits. You can't (in general), always avoid human intervention.

I would challenge the idea of making everything look like 1 transaction. That will adversely impact the quality of your history. It will look like you made independant changed in many places. If you make the merging to other branches a separate transaction then the history will better reflect what you actually did (making one change and back porting it). Is there a reason you need to edit all branches in 1 Transaction?

0

精彩评论

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