Working on several branches at the same time

David Cournapeau david at ar.media.kyoto-u.ac.jp
Sun Jun 15 10:35:16 BST 2008


Hi,

    I have recently encountered the following situation:

- I have a branch mainline, from which I want to add a new feature
- I am working on a new feature in branch newfeat.
- While working on newfeat, I realize something is broken, which 
prevents me from working further in newfeat.
- I create another branch from mainline to fix the bug.

How do I go after that ? I need the fix to finish new feat, so I need to 
put the fix into newfeat, somewhat. But the fix itself has nothing to do 
with newfeat, so it makes sense to put it into mainline too ? I could do 
it with rebase, but is there another recommended way of dealing with 
this case ?

thanks,

David



More information about the bazaar mailing list