Show More
@@ -451,7 +451,8 b' class dirstate(object):' | |||||
451 | possibly_dirty=False, |
|
451 | possibly_dirty=False, | |
452 | ): |
|
452 | ): | |
453 | oldstate = self[f] |
|
453 | oldstate = self[f] | |
454 | if state == b'a' or oldstate == b'r': |
|
454 | entry = self._map.get(f) | |
|
455 | if state == b'a' or entry is not None and entry.removed: | |||
455 | scmutil.checkfilename(f) |
|
456 | scmutil.checkfilename(f) | |
456 | if self._map.hastrackeddir(f): |
|
457 | if self._map.hastrackeddir(f): | |
457 | msg = _(b'directory %r already in dirstate') |
|
458 | msg = _(b'directory %r already in dirstate') |
General Comments 0
You need to be logged in to leave comments.
Login now