Changes between Version 24 and Version 25 of BazaarWorkflow
- Timestamp:
- 2010-06-07T16:31:17Z (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BazaarWorkflow
v24 v25 21 21 22 22 {{{ 23 $ bzr branch bzr://bzr.helenos.org/ headmy_branch23 $ bzr branch bzr://bzr.helenos.org/mainline my_branch 24 24 }}} 25 25 … … 35 35 36 36 {{{ 37 my_branch$ bzr push --remember bzr+http://jermar@bzr.helenos.org/ head37 my_branch$ bzr push --remember bzr+http://jermar@bzr.helenos.org/mainline 38 38 }}} 39 39 … … 67 67 With merging, the order of arguments is significant. In this case we want to ''merge your branch into the mainline'', not the other way around! How can you do this? With bazaar you can only merge to a local repository (you need to chdir into it), you cannot merge to a remote repository. 68 68 69 Therefore we have to resort to a little trick. Suppose you have a branch {{{my_branch}}}. We create a new branch {{{ head-clone}}} which will be a clone of the mainline:69 Therefore we have to resort to a little trick. Suppose you have a branch {{{my_branch}}}. We create a new branch {{{mainline-clone}}} which will be a clone of the mainline: 70 70 71 71 {{{ 72 $ bzr branch bzr://bzr.helenos.org/ head head-clone72 $ bzr branch bzr://bzr.helenos.org/mainline mainline-clone 73 73 }}} 74 74 … … 76 76 77 77 {{{ 78 $ cd head-clone79 head-clone$ bzr merge ../my_branch80 head-clone$ bzr commit -m "Merge FAT server improvements."78 $ cd mainline-clone 79 mainline-clone$ bzr merge ../my_branch 80 mainline-clone$ bzr commit -m "Merge FAT server improvements." 81 81 }}} 82 82 … … 84 84 85 85 {{{ 86 head-clone$ bzr push bzr+http://jermar@bzr.helenos.org/head 86 mainline-clone$ bzr push bzr+http://jermar@bzr.helenos.org/mainline 87 87 }}} 88 88 … … 94 94 95 95 {{{ 96 my_branch$ bzr merge bzr://bzr.helenos.org/ head96 my_branch$ bzr merge bzr://bzr.helenos.org/mainline 97 97 my_branch$ bzr commit -m "Merge mainline changes." 98 98 }}} … … 102 102 === Keeping a Clone Around === 103 103 104 It is advisable to keep a clone (such as the {{{ head-clone}}} repository mentioned above) around. You can keep it up to date by pulling from the main repository:104 It is advisable to keep a clone (such as the {{{mainline-clone}}} repository mentioned above) around. You can keep it up to date by pulling from the main repository: 105 105 106 106 {{{ 107 head-clone$ bzr pull107 mainline-clone$ bzr pull 108 108 }}} 109 109