post_push hook doesn't work on newly created branches
Bug #750749 reported by
Ricardo Kirkner
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned | ||
Breezy |
Triaged
|
Medium
|
Unassigned |
Bug Description
I'm writing a command/hook to automatically subscribe the project owner to branches pushed to launchpad, to make private branches work with our workflow.
So far the post_push hook seems to work, however this only happens if the branch already exists on launchpad; if the branch doesn't exist, the post_push hook doesn't get executed.
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: hooks |
Changed in bzr: | |
importance: | Medium → High |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
Confirmed. I think the problem here is that in bzrlib.push, we use create_ clone_on_ transport( ) if the destination does not exist, and that method does not fire post_push. We could change it to do so, or probably better change things so that we just create the destination directory and then push into it.