Rev 806: Work around memory leak in the python subversion bindings. in file:///data/jelmer/bzr-svn/0.4/

Jelmer Vernooij jelmer at samba.org
Fri Dec 14 13:52:08 GMT 2007


At file:///data/jelmer/bzr-svn/0.4/

------------------------------------------------------------
revno: 806
revision-id:jelmer at samba.org-20071214135208-fqnfbtgh2bliurmp
parent: jelmer at samba.org-20071209224848-8j0c45o59ytw7mlg
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2007-12-14 14:52:08 +0100
message:
  Work around memory leak in the python subversion bindings.
modified:
  NEWS                           news-20061231030336-h9fhq245ie0de8bs-1
  logwalker.py                   logwalker.py-20060621215743-c13fhfnyzh1xzwh2-1
=== modified file 'NEWS'
--- a/NEWS	2007-12-06 15:54:08 +0000
+++ b/NEWS	2007-12-14 13:52:08 +0000
@@ -6,6 +6,8 @@
      push a lot faster, in particular in Subversion repositories 
 	 with a lot of branches.
 
+   * Work around memory leak in the Python Subversion bindings of svn.ra.get_log(). 
+
 bzr-svn 0.4.5	2007-12-01
 
   IMPROVEMENTS

=== modified file 'logwalker.py'
--- a/logwalker.py	2007-12-09 22:48:48 +0000
+++ b/logwalker.py	2007-12-14 13:52:08 +0000
@@ -95,6 +95,8 @@
                 self.db.execute(
                      "replace into changed_path (rev, path, action, copyfrom_path, copyfrom_rev) values (?, ?, ?, ?, ?)", 
                      (log_entry.revision, p.strip("/"), orig_paths[p].action, copyfrom_path, orig_paths[p].copyfrom_rev))
+                # Work around nasty memory leak in Subversion
+                orig_paths[p]._parent_pool.destroy()
 
             self.saved_revnum = log_entry.revision
             if self.saved_revnum % 1000 == 0:




More information about the bazaar-commits mailing list