mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
dirstate: notice truncated parents read
This commit is contained in:
parent
1c30179455
commit
66cde5c7cb
@ -75,6 +75,8 @@ class dirstate(object):
|
||||
st = self._opener("dirstate").read(40)
|
||||
if len(st) == 40:
|
||||
return st[:20], st[20:40]
|
||||
if len(st) < 40:
|
||||
raise util.Abort(_('working directory state appears damaged!'))
|
||||
except IOError, err:
|
||||
if err.errno != errno.ENOENT: raise
|
||||
return [nullid, nullid]
|
||||
|
Loading…
Reference in New Issue
Block a user