Do you need to close a branch? (if so how)

Nicholas Allen nick.allen at onlinehome.de
Wed Feb 25 04:20:35 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Robert,

I think that was it. I now do:

try:
                    parent_location = branch.get_parent()
            	
                    if not parent_location is None:
                        parent_branch = Branch.open(parent_location)

                        try:
                            branch.pull(parent_branch)
                        finally:
                            del parent_branch
                except BzrError, e:
                    print >>sys.stderr, \
                            'Could not pull from parent for branch %s:
%s' % (branch_emailer.path, e)

Does that look correct to you?

Cheers,

Nick

Robert Collins wrote:
> On Wed, 2009-02-25 at 00:23 +0100, Nicholas Allen wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Thanks for the help - I will try that. But that still doesn't explain
>> why I run out of sockets...
> 
> try
> 
> del branch
> 
> - I suspect you're accumulating the objects somewhere.
> 
> -Rob

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmkxxAACgkQ1+i51gqqEGn4hwCfSSL8Hjs6t8vwBSPhd+tOnzy3
a94AoK7ZxC3+DfABotuomRJRyKfH9Lej
=NT3l
-----END PGP SIGNATURE-----



More information about the bazaar mailing list