Show More
@@ -593,8 +593,7 class dirstate(object): | |||
|
593 | 593 | return path |
|
594 | 594 | |
|
595 | 595 | def clear(self): |
|
596 | self._map = dirstatemap(self._ui, self._opener, self._root) | |
|
597 | self._map.setparents(nullid, nullid) | |
|
596 | self._map.clear() | |
|
598 | 597 | self._lastnormaltime = 0 |
|
599 | 598 | self._updatedfiles.clear() |
|
600 | 599 | self._dirty = True |
@@ -1210,6 +1209,11 class dirstatemap(object): | |||
|
1210 | 1209 | # for consistent view between _pl() and _read() invocations |
|
1211 | 1210 | self._pendingmode = None |
|
1212 | 1211 | |
|
1212 | def clear(self): | |
|
1213 | self._map = {} | |
|
1214 | self.copymap = {} | |
|
1215 | self.setparents(nullid, nullid) | |
|
1216 | ||
|
1213 | 1217 | def iteritems(self): |
|
1214 | 1218 | return self._map.iteritems() |
|
1215 | 1219 |
General Comments 0
You need to be logged in to leave comments.
Login now