[PATCH] bookmarks: complete the missing references from dda4ad7c9ea9 (issue2121)

Isaac Jurado diptongo at gmail.com
Sat Apr 17 07:37:42 CDT 2010


# HG changeset patch
# User Isaac Jurado <diptongo at gmail.com>
# Date 1271507546 -7200
# Branch stable
# Node ID 6bb53b2d848898ea5a522d1e37f6c844c0972e81
# Parent  377d879e9d1b0238e4eb8fea507ba91608bfacaa
bookmarks: complete the missing references from dda4ad7c9ea9 (issue2121)

The fix for issue1611 left one last use of "repo" instead of "self" that has
resulted in more memory leaks from push/pull operations.

diff -r 377d879e9d1b -r 6bb53b2d8488 hgext/bookmarks.py
--- a/hgext/bookmarks.py	Fri Apr 16 01:57:53 2010 +0200
+++ b/hgext/bookmarks.py	Sat Apr 17 14:32:26 2010 +0200
@@ -301,7 +301,7 @@
                 super(bookmark_repo, self).invalidate()
                 for attr in ('_bookmarks', '_bookmarkcurrent'):
                     if attr in self.__dict__:
-                        delattr(repo, attr)
+                        delattr(self, attr)
 
     repo.__class__ = bookmark_repo
 


More information about the Mercurial-devel mailing list