##// END OF EJS Templates
dirstate: don't fail when dropping a not-tracked file (issue3080)...
Matt Mackall -
r15399:41453d55 2.0 stable
parent child Browse files
Show More
@@ -370,9 +370,10 b' class dirstate(object):'
370
370
371 def drop(self, f):
371 def drop(self, f):
372 '''Drop a file from the dirstate'''
372 '''Drop a file from the dirstate'''
373 self._dirty = True
373 if f in self._map:
374 self._droppath(f)
374 self._dirty = True
375 del self._map[f]
375 self._droppath(f)
376 del self._map[f]
376
377
377 def _normalize(self, path, isknown):
378 def _normalize(self, path, isknown):
378 normed = os.path.normcase(path)
379 normed = os.path.normcase(path)
General Comments 0
You need to be logged in to leave comments. Login now