Show More
@@ -550,7 +550,9 b' class workingbackend(fsbackend):' | |||||
550 | self.copied = [] |
|
550 | self.copied = [] | |
551 |
|
551 | |||
552 | def _checkknown(self, fname): |
|
552 | def _checkknown(self, fname): | |
553 |
if self.repo.dirstate |
|
553 | if not self.repo.dirstate.get_entry(fname).any_tracked and self.exists( | |
|
554 | fname | |||
|
555 | ): | |||
554 | raise PatchError(_(b'cannot patch %s: file is not tracked') % fname) |
|
556 | raise PatchError(_(b'cannot patch %s: file is not tracked') % fname) | |
555 |
|
557 | |||
556 | def setfile(self, fname, data, mode, copysource): |
|
558 | def setfile(self, fname, data, mode, copysource): |
General Comments 0
You need to be logged in to leave comments.
Login now