Do you need to close a branch? (if so how)
Nicholas Allen
nick.allen at onlinehome.de
Tue Feb 24 21:46:44 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
In my bzr-email-notifier tool I do the following:
try:
parent_location = branch.get_parent()
if not parent_location is None:
parent_branch = Branch.open(parent_location)
branch.pull(parent_branch)
except BzrError, e:
print >>sys.stderr, \
'Could not pull from parent for branch %s:
%s' % (branch_emailer.path, e)
Do I need to do something to close the parent branch after I am finished
with it? I can't find a close method on Branch. I notice that after a
while I run out of sockets on my server so I guess open is keeping a
socket open even after the parent branch (which is remote) is no longer
needed.
Any help greatly appreciated...
Cheers,
Nick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmkasEACgkQ1+i51gqqEGmDVACfZFacqskPBYasLmqSSK55sogL
Ym4AoJc6aS60UNFAuxDHfPVCTKhg5lJ3
=/Lj3
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list