BzrDir.has_{branch,workingtree}

Jelmer Vernooij jelmer at samba.org
Sun Mar 21 22:50:00 GMT 2010


BzrDir has two methods that just check whether a branch or working tree
are present. Their docstrings already mention that using them is
probably a bad idea - if you need a Branch you should just try to open
it and deal with any exceptions that occur, rather than checking first
if the branch is present.

There are only two users of has_branch() in the Bazaar codebase, but
they could easily be removed. Does anybody object to it being removed?

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20100321/88ac6456/attachment-0001.pgp 


More information about the bazaar mailing list