commit forcing commit (and update forcing update) of another branch

Asked by Václav Šmilauer

I have 3 separate local branches versioned with bzr, on which I work simultaneously. Let's call one of them "main" and the other two other1 and other2. I share those branches with my colleagues via remote bound branches. A frequent problem is that I commit "main" but forget to commit other1 and other2; my colleagues then don't get a working version, because they are out of sync.

I would like to have bazaar force me commit other1 and other2 whenever I commit "main", and force me update other1 and other2 whenever I update "main".

Can I achieve this using some hooks or otherwise?

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

There's no canned hook to do this, but you could write it using the
python hooks in Bazaar...

Can you help with this problem?

Provide an answer of your own, or ask Václav Šmilauer for more information if necessary.

To post a message you must log in.