* src/DbManager.py: I was having some weird issues with the archive

file giving errors about "still in use". With these changes, I haven't
	had it happen... yet. Can't say for certain if these changes fixed it,
	or if there is another cause.

2007-12-17  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r9528
This commit is contained in:
Doug Blank 2007-12-17 18:43:04 +00:00
parent 2f63b477cb
commit 3a10b36866
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-12-17 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DbManager.py: I was having some weird issues with the archive
file giving errors about "still in use". With these changes, I haven't
had it happen... yet. Can't say for certain if these changes fixed it,
or if there is another cause.
2007-12-17 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/CalculateEstimatedDates.py: Give good defaults for Filter
and Enumerated Lists

View File

@ -33,6 +33,7 @@ __revision__ = "$Revision: 8197 $"
#-------------------------------------------------------------------------
import os
import time
import copy
import subprocess
from gettext import gettext as _
@ -800,7 +801,7 @@ def find_revisions(name):
for line in proc.stdout:
match = rev.match(line)
if match:
rev_str = match.groups()[0]
rev_str = copy.copy(match.groups()[0])
continue
match = date.match(line)
if match:
@ -813,6 +814,8 @@ def find_revisions(name):
get_next = False
com_str = line.strip()
revlist.append((rev_str, date_str, com_str))
proc.stdout.close()
del proc
return revlist
def find_locker_name(dirpath):
@ -893,8 +896,8 @@ def check_in(dbase, filename, callback, cursor_func = None):
proc = subprocess.Popen(cmd, stderr = subprocess.PIPE )
message = "\n".join(proc.stderr.readlines())
proc.stderr.close()
status = proc.wait()
proc.stderr.close()
del proc
if status != 0: