hi,<br><br>I&#39;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # new style commit hooks:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if not self.bound_branch:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hook_master = self.branch<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hook_local = None<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hook_master = self.master_branch<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>