checkout and branch hooks

Asked by Marco Pantaleoni

Are there any hooks executed whenever a working tree is created or bound to a different branch? And when a new branch is created?
In other words is there a way to catch "bzr checkout", "bzr switch", "bzr bind" and "bzr branch"?

If not, how is it possible to add such hooks?

Question information

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

Hi,

"bzr help hooks" tells you what exists at the moment.

Those three hooks don't exist at the moment. It would be pretty easy to add them, by looking at the similar hooks that already exist. If you would like to try doing a patch for this we will help you.

Revision history for this message
Marco Pantaleoni (marco-pantaleoni) said :
#2

Thanks Martin Pool, that solved my question.

Revision history for this message
Marco Pantaleoni (marco-pantaleoni) said :
#3