Show More
@@ -44,7 +44,7 b' NONNORMAL = -1' | |||||
44 | AMBIGUOUS_TIME = -1 |
|
44 | AMBIGUOUS_TIME = -1 | |
45 |
|
45 | |||
46 |
|
46 | |||
47 | @attr.s(slots=True) |
|
47 | @attr.s(slots=True, init=False) | |
48 | class DirstateItem(object): |
|
48 | class DirstateItem(object): | |
49 | """represent a dirstate entry |
|
49 | """represent a dirstate entry | |
50 |
|
50 | |||
@@ -61,6 +61,12 b' class DirstateItem(object):' | |||||
61 | _size = attr.ib() |
|
61 | _size = attr.ib() | |
62 | _mtime = attr.ib() |
|
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 | def __getitem__(self, idx): |
|
70 | def __getitem__(self, idx): | |
65 | if idx == 0 or idx == -4: |
|
71 | if idx == 0 or idx == -4: | |
66 | msg = b"do not use item[x], use item.state" |
|
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