This commit is contained in:
Guido van Rossum 1995-04-27 18:05:36 +00:00
parent bec818a14f
commit c51237cd70
1 changed files with 4 additions and 2 deletions

View File

@ -14,10 +14,10 @@ def __init__(self, line):
self.file = words[1]
self.rev = words[2]
dates = words[3] # ctime, mtime
if dates[:7] == 'Initial':
if len(dates) != 49 or dates[:7] == 'Initial':
self.ctime = None
self.mtime = None
self.new = 1
self.new = dates[:7] == 'Initial'
else:
self.ctime = unctime(dates[:24])
self.mtime = unctime(dates[25:])
@ -79,6 +79,8 @@ def readsums(self):
if not line: break
words = string.split(line)
[file, rev, hexsum] = words
if not self.entries.has_key(file):
continue
e = self.entries[file]
if e.rev == rev:
e.sethexsum(hexsum)