<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 class="h5"><br>
</div></div>Many thanks. So here is what I did. I registered a branch set_trace, then I did:<br>
<br>
$ bzr launchpad-login ondrej-certik<br>
<br>
and setup my ssh keys. Then I did:<br>
<br>
$ bzr push lp:~ipython-dev/ipython/set_trace<br>
bzr: ERROR: Target directory lp:~ipython-dev/ipython/set_trace already<br>
exists, but does not have a valid .bzr directory. Supply<br>
--use-existing-dir to push there anyway.<br>
<br>
<br>
so I tried the --use-existing-dir options, is that the correct way?<br>
</blockquote><div><br>You can just push without registering the branch ahead of time.  Then you don't have to use the --use-existing-dir flag.  Basically a push of a new branch to lp does the registration for you.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
$ bzr push --use-existing-dir  lp:~ipython-dev/ipython/set_trace<br>
Using default stacking branch /~ipython-dev/ipython/trunk at<br>
bzr+ssh://<a href="http://bazaar.launchpad.net/%7Eipython-dev/ipython/" target="_blank">bazaar.launchpad.net/%7Eipython-dev/ipython/</a><br>
Created new branch.<br>
<br>
then I went to the web address of the branch:<br>
<br>
<a href="https://code.edge.launchpad.net/%7Eipython-dev/ipython/set_trace" target="_blank">https://code.edge.launchpad.net/~ipython-dev/ipython/set_trace</a><br>
<br>
and clicked "Propose for merging into another branch":<br>
<br>
<a href="https://code.edge.launchpad.net/%7Eipython-dev/ipython/set_trace/+merge/8855" target="_blank">https://code.edge.launchpad.net/~ipython-dev/ipython/set_trace/+merge/8855</a><br>
<br>
let me know if I did things correctly.<br>
</blockquote><div><br>Yep, I got the email with the merge request.  Fernando is about to begin working on the 0.10 release and this might make it in for that.  Otherwise, we will target it for 0.11.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
If I want to checkout the trunk branch instead (e.g. without my<br>
commit), how do I do that? E.g. the equivalent of:<br>
<br>
git checkout master<br>
git checkout my_branch<br>
<br>
looking here:<br>
<br>
<a href="http://www.taoeffect.com/blog/2009/06/using-bazaar-like-git-repoalias-plugin/" target="_blank">http://www.taoeffect.com/blog/2009/06/using-bazaar-like-git-repoalias-plugin/</a><br>
<br>
it's seems pretty complex. I am new to bzr, so I might be doing things<br>
the wrong way.<br>
<font color="#888888"></font></blockquote><div><br>This does look complicated.  The way we are using bzr on a daily basis is quite different from the typicaly git workflow and much simpler.  With your adoration of git, you probably won't like it ;-)  To get the ipython trunk branch:<br>
<br>$ mkdir code<br>$ cd code<br>$ bzr branch lp:ipython<br><br>This will create a new, independent "ipython" directory within "code" that will only have that branch.  To also get your branch do:<br><br>
$ cd code<br>$ bzr branch lp:~ipython-div/ipython/set_trace<br>$ ls<br>ipython<br>set_trace<br><br>To merge upstream ipython into set_trace:<br><br>$ cd code/set_trace<br>$ bzr merge ../ipython<br><br>To merge the updated set_trace into trunk do:<br>
<br>$ cd code/ipython<br>$ bzr merge ../set_trace<br><br>BUT, you want to make sure you merge all upstream changes from trunk into set_trace first.<br><br>Notice, everything in our workflow is based upon the assumption that branch=directory, which is very different from git's repo=multiple branches=directory model.<br>
<br>Anyways, thank for the code.<br><br>Cheers,<br><br>Brian <br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888"><br>

Ondrej<br>
</font></blockquote></div><br>