Show More
@@ -852,15 +852,15 b' class workingctx(changectx):' | |||||
852 | yield changectx(self._repo, a) |
|
852 | yield changectx(self._repo, a) | |
853 |
|
853 | |||
854 | def remove(self, list, unlink=False): |
|
854 | def remove(self, list, unlink=False): | |
855 | if unlink: |
|
|||
856 | for f in list: |
|
|||
857 | try: |
|
|||
858 | util.unlinkpath(self._repo.wjoin(f)) |
|
|||
859 | except OSError, inst: |
|
|||
860 | if inst.errno != errno.ENOENT: |
|
|||
861 | raise |
|
|||
862 | wlock = self._repo.wlock() |
|
855 | wlock = self._repo.wlock() | |
863 | try: |
|
856 | try: | |
|
857 | if unlink: | |||
|
858 | for f in list: | |||
|
859 | try: | |||
|
860 | util.unlinkpath(self._repo.wjoin(f)) | |||
|
861 | except OSError, inst: | |||
|
862 | if inst.errno != errno.ENOENT: | |||
|
863 | raise | |||
864 | for f in list: |
|
864 | for f in list: | |
865 | if unlink and os.path.lexists(self._repo.wjoin(f)): |
|
865 | if unlink and os.path.lexists(self._repo.wjoin(f)): | |
866 | self._repo.ui.warn(_("%s still exists!\n") % f) |
|
866 | self._repo.ui.warn(_("%s still exists!\n") % f) |
General Comments 0
You need to be logged in to leave comments.
Login now