On Thu, Mar 25, 2010 at 8:50 AM, Ali Sabil <span dir="ltr">&lt;<a href="mailto:ali.sabil@gmail.com">ali.sabil@gmail.com</a>&gt;</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>
&lt;<a href="mailto:andrew.bennetts@canonical.com">andrew.bennetts@canonical.com</a>&gt; wrote:<br>
&gt; Marco Pantaleoni wrote:<br>
&gt;&gt;    Hi,<br>
&gt;&gt;    after asking for this functionality<br>
&gt;&gt;    ([1]<a href="https://answers.launchpad.net/bzr/+question/105308" target="_blank">https://answers.launchpad.net/bzr/+question/105308</a>), I added the<br>
&gt;&gt;    following hooks to Bazaar:<br>
&gt;&gt;<br>
&gt;&gt;    �* post_branch - called when a new branch is created<br>
&gt;&gt;    �* post_switch - called after a checkout is switched to a different branch<br>
&gt;&gt;    �* post_repo_init - called after a repository has been created<br>
&gt;&gt;<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&#39;t know the details, but the new &#39;post_branch_init&#39; hook is called also for &quot;bzr co --lightweight&quot;, 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>