/srv/irclogs.ubuntu.com/2013/11/05/#bzr.txt

=== DarkLinkXXXX is now known as DarkLinkXXXX_
=== DarkLinkXXXX_ is now known as XX_DarkLink_XX
=== hloeung is now known as Guest69603
=== Guest69603 is now known as hloeung
vilaxnox: :-D07:26
vilaxnox: ln -s /usr/bin/bzr ~/bin/bar07:27
dobeyhi all. how can i verify that a working tree in bzrlib is a lightweight checkout of a branch?14:59
mgz`bzr info`?15:05
mgzor you mean in python?15:05
dobeymgz: with bzrlib in python, yes15:13
mgzworkingtree objects have a branch attribute you can inspect to see which it is15:15
mgzand the lightweight checkout chek goes something like:15:18
mgz`tree.user_url != tree.branch.user_url`15:19
mgzdobey: hope that helps15:19
dobeymgz: branch being a bzrlib.branch.Branch?15:20
mgzright, but you get one created for you whenever you construct a tree15:20
mgzyou probably want to start:15:21
mgz`d = controldir.ControlDir.open(location); tree = d.open_workingtree();`15:21
mgzand catch some exceptons from open_workingtree15:22
dobeyright. already have one because tarmac creates a Branch from the launchpadlib branch, without yet opening the working tree15:22
mgzthen you have some fun, because you can't go from less specific to more specific in general15:23
mgzyou'd want to reopen the location of the branch as a new object15:23
dobeyyeah, it does.15:23
dobeyi just wanted to make sure the type was what i thought it was15:24
dobeyif user_url is the right thing to check for that, it should do though. thanks15:25
=== mbarnett` is now known as mbarnett
=== thomi_ is now known as thomi
=== SamB__ is now known as SamB
=== lifeless_ is now known as lifeless

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!