Best way to check if a directory is an brz branch
Nicholas Allen
nick.allen at onlinehome.de
Tue Feb 17 17:41:48 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel wrote:
>
> ...
>
>> I could change BranchEmailer to take a branch as an argument and not its
>> path I suppose. This is not a change I want to do because I think it
>> makes more sense how it is now.
>
> Perhaps, though I think BranchEmailer is just going to open them up
> later anyway.
>
> However, for your initial issue, there is:
>
> bzrlib.bzrdir.BzrDir.find_branches(transport)
>
> I would guess that actually returns real Branch objects, but it does all
> the walking for you.
Unfortunately, I can't use that method because I need to do other things
while I recurse the directory structure, such as maintaining a relative
path to the root that I scanned from.
Nick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkma9toACgkQ1+i51gqqEGlNFQCfaewgYmOZTE0S4R2tlx8k1blq
HyIAn1x+RvRunDZfxJGnUq6U1Bve5ddl
=8bzJ
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list