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