Show More
@@ -73,9 +73,10 b' class dirstate(object):' | |||||
73 | def _pl(self): |
|
73 | def _pl(self): | |
74 | try: |
|
74 | try: | |
75 | st = self._opener("dirstate").read(40) |
|
75 | st = self._opener("dirstate").read(40) | |
76 |
|
|
76 | l = len(st) | |
|
77 | if l == 40: | |||
77 | return st[:20], st[20:40] |
|
78 | return st[:20], st[20:40] | |
78 |
if l |
|
79 | elif l > 0 and l < 40: | |
79 | raise util.Abort(_('working directory state appears damaged!')) |
|
80 | raise util.Abort(_('working directory state appears damaged!')) | |
80 | except IOError, err: |
|
81 | except IOError, err: | |
81 | if err.errno != errno.ENOENT: raise |
|
82 | if err.errno != errno.ENOENT: raise |
General Comments 0
You need to be logged in to leave comments.
Login now