hi,<br><br>I'm trying to write a pre_commit hook, but when it is called,<br>it seems that the local and master branch are the wrong way around.<br>looking at bzrlib.commit._process_hooks I see:<br>around line 543:<br> # new style commit hooks:<br>
if not self.bound_branch:<br> hook_master = self.branch<br> hook_local = None<br> else:<br> hook_master = self.master_branch<br> hook_local = self.branch<br><br>this looks wrong to me, but I might be missing something.<br>
I attached a patch which fixes it for me.<br clear="all">I could not find tests for this so I added one.<br><br>regards <br>marius<br>