On Thu, Mar 25, 2010 at 8:50 AM, Ali Sabil <span dir="ltr"><<a href="mailto:ali.sabil@gmail.com">ali.sabil@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Mar 25, 2010 at 12:58 AM, Andrew Bennetts<br>
<<a href="mailto:andrew.bennetts@canonical.com">andrew.bennetts@canonical.com</a>> wrote:<br>
> Marco Pantaleoni wrote:<br>
>> Hi,<br>
>> after asking for this functionality<br>
>> ([1]<a href="https://answers.launchpad.net/bzr/+question/105308" target="_blank">https://answers.launchpad.net/bzr/+question/105308</a>), I added the<br>
>> following hooks to Bazaar:<br>
>><br>
>> �* post_branch - called when a new branch is created<br>
>> �* post_switch - called after a checkout is switched to a different branch<br>
>> �* post_repo_init - called after a repository has been created<br>
>><br>
<br>
</div></div>Will these hooks allow fixing the following bug:<br>
<a href="https://bugs.launchpad.net/bzr-externals/+bug/485494" target="_blank">https://bugs.launchpad.net/bzr-externals/+bug/485494</a> ?<br>
</blockquote></div><br>Well, I don't know the details, but the new 'post_branch_init' hook is called also for "bzr co --lightweight", and the param object passed to the hook contains both the original branch from the repository and the BzrDir object for the lightweight checkout.<br clear="all">
Hope this helps.<br><br>Marco<br><br>-- <br>Marco Pantaleoni<br><br>