Rev 293: Use pools to try to reduce the memory consumption. in http://people.samba.org/bzr/jelmer/bzr-svn/bzr.dev
Jelmer Vernooij
jelmer at samba.org
Mon Dec 25 23:05:46 GMT 2006
------------------------------------------------------------
revno: 293
revision-id: jelmer at samba.org-20061225230518-a66fwk0gvjolqhfu
parent: jelmer at samba.org-20061225171214-tqbig0t3k1za9450
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: main
timestamp: Tue 2006-12-26 00:05:18 +0100
message:
Use pools to try to reduce the memory consumption.
modified:
fetch.py fetch.py-20060625004942-x2lfaib8ra707a8p-1
=== modified file 'fetch.py'
--- a/fetch.py 2006-12-25 04:43:45 +0000
+++ b/fetch.py 2006-12-25 23:05:18 +0000
@@ -336,11 +336,12 @@
transport.reparent("%s/%s" % (repos_root, parent_branch))
pool = Pool()
if parent_branch != branch:
+ switch_url = "%s/%s" % (repos_root, branch)
mutter('svn switch %r:%r -> %r:%r' %
- (parent_branch, parent_revnum, branch, revnum))
+ (parent_branch, parent_revnum, switch_url, revnum))
reporter, reporter_baton = transport.do_switch(
revnum, "", True,
- "%s/%s" % (repos_root, branch),
+ switch_url,
edit, edit_baton, pool)
else:
mutter('svn update -r %r:%r %r' %
@@ -351,15 +352,17 @@
# Report status of existing paths
svn.ra.reporter2_invoke_set_path(reporter, reporter_baton,
- "", parent_revnum, False, None)
+ "", parent_revnum, False, None, pool)
transport.lock()
- svn.ra.reporter2_invoke_finish_report(reporter, reporter_baton)
+ svn.ra.reporter2_invoke_finish_report(reporter, reporter_baton, pool)
transport.unlock()
prev_inv = editor.inventory
prev_revid = revid
+ pool.destroy()
+
if pb is not None:
pb.clear()
More information about the bazaar-commits
mailing list