Show More
@@ -44,7 +44,7 b' NONNORMAL = -1' | |||
|
44 | 44 | AMBIGUOUS_TIME = -1 |
|
45 | 45 | |
|
46 | 46 | |
|
47 | @attr.s(slots=True) | |
|
47 | @attr.s(slots=True, init=False) | |
|
48 | 48 | class DirstateItem(object): |
|
49 | 49 | """represent a dirstate entry |
|
50 | 50 | |
@@ -61,6 +61,12 b' class DirstateItem(object):' | |||
|
61 | 61 | _size = attr.ib() |
|
62 | 62 | _mtime = attr.ib() |
|
63 | 63 | |
|
64 | def __init__(self, state, mode, size, mtime): | |
|
65 | self._state = state | |
|
66 | self._mode = mode | |
|
67 | self._size = size | |
|
68 | self._mtime = mtime | |
|
69 | ||
|
64 | 70 | def __getitem__(self, idx): |
|
65 | 71 | if idx == 0 or idx == -4: |
|
66 | 72 | msg = b"do not use item[x], use item.state" |
General Comments 0
You need to be logged in to leave comments.
Login now