comparison svnwrap/svn_swig_wrapper.py @ 305:97360cb777a8

svn_swig_wrapper: remove explicit invocation of the garbage collector It's the Subversion bindings that are broken, not Python. I think.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 01 May 2009 13:01:20 +0200
parents ce676eff002b
children c4061e57974c
comparison
equal deleted inserted replaced
304:ce676eff002b 305:97360cb777a8
393 raise hgutil.Abort('%s not found at revision %d!' 393 raise hgutil.Abort('%s not found at revision %d!'
394 % (self.subdir.rstrip('/'), stop)) 394 % (self.subdir.rstrip('/'), stop))
395 395
396 while len(revisions) > 1: 396 while len(revisions) > 1:
397 yield revisions.popleft() 397 yield revisions.popleft()
398 # Now is a good time to do a quick garbage collection.
399 gc.collect(0)
400 398
401 if len(revisions) == 0: 399 if len(revisions) == 0:
402 # exit the loop; there is no history for the path. 400 # exit the loop; there is no history for the path.
403 break 401 break
404 else: 402 else:
405 r = revisions.popleft() 403 r = revisions.popleft()
406 start = r.revnum 404 start = r.revnum
407 yield r 405 yield r
408 self.init_ra_and_client() 406 self.init_ra_and_client()
409 # Now is a good time to do a thorough garbage colection.
410 gc.collect()
411 407
412 def commit(self, paths, message, file_data, base_revision, addeddirs, 408 def commit(self, paths, message, file_data, base_revision, addeddirs,
413 deleteddirs, properties, copies): 409 deleteddirs, properties, copies):
414 """Commits the appropriate targets from revision in editor's store. 410 """Commits the appropriate targets from revision in editor's store.
415 """ 411 """