Show More
@@ -1765,11 +1765,11 b' class localrepository:' | |||||
1765 | for f in remove: |
|
1765 | for f in remove: | |
1766 | self.ui.note("removing %s\n" % f) |
|
1766 | self.ui.note("removing %s\n" % f) | |
1767 | try: |
|
1767 | try: | |
1768 | os.unlink(f) |
|
1768 | os.unlink(self.wjoin(f)) | |
1769 | except OSError, inst: |
|
1769 | except OSError, inst: | |
1770 | self.ui.warn("update failed to remove %s: %s!\n" % (f, inst)) |
|
1770 | self.ui.warn("update failed to remove %s: %s!\n" % (f, inst)) | |
1771 | # try removing directories that might now be empty |
|
1771 | # try removing directories that might now be empty | |
1772 | try: os.removedirs(os.path.dirname(f)) |
|
1772 | try: os.removedirs(os.path.dirname(self.wjoin(f))) | |
1773 | except: pass |
|
1773 | except: pass | |
1774 | if moddirstate: |
|
1774 | if moddirstate: | |
1775 | if mode == 'n': |
|
1775 | if mode == 'n': |
General Comments 0
You need to be logged in to leave comments.
Login now