Show More
@@ -971,18 +971,17 b' class localrepository(repo.repository):' | |||
|
971 | 971 | |
|
972 | 972 | # update dirstate for files that are actually clean |
|
973 | 973 | if fixup: |
|
974 | wlock = None | |
|
975 | 974 | try: |
|
975 | wlock = self.wlock(False) | |
|
976 | 976 | try: |
|
977 | 977 | # updating the dirstate is optional |
|
978 | 978 | # so we don't wait on the lock |
|
979 | wlock = self.wlock(False) | |
|
980 | 979 | for f in fixup: |
|
981 | 980 | self.dirstate.normal(f) |
|
982 |
|
|
|
983 |
|
|
|
984 | finally: | |
|
985 |
|
|
|
981 | finally: | |
|
982 | wlock.release() | |
|
983 | except error.LockError: | |
|
984 | pass | |
|
986 | 985 | |
|
987 | 986 | if not parentworking: |
|
988 | 987 | mf1 = mfmatches(ctx1) |
@@ -1062,16 +1061,15 b' class localrepository(repo.repository):' | |||
|
1062 | 1061 | wlock.release() |
|
1063 | 1062 | |
|
1064 | 1063 | def remove(self, list, unlink=False): |
|
1065 | wlock = None | |
|
1064 | if unlink: | |
|
1065 | for f in list: | |
|
1066 | try: | |
|
1067 | util.unlink(self.wjoin(f)) | |
|
1068 | except OSError, inst: | |
|
1069 | if inst.errno != errno.ENOENT: | |
|
1070 | raise | |
|
1071 | wlock = self.wlock() | |
|
1066 | 1072 | try: |
|
1067 | if unlink: | |
|
1068 | for f in list: | |
|
1069 | try: | |
|
1070 | util.unlink(self.wjoin(f)) | |
|
1071 | except OSError, inst: | |
|
1072 | if inst.errno != errno.ENOENT: | |
|
1073 | raise | |
|
1074 | wlock = self.wlock() | |
|
1075 | 1073 | for f in list: |
|
1076 | 1074 | if unlink and os.path.exists(self.wjoin(f)): |
|
1077 | 1075 | self.ui.warn(_("%s still exists!\n") % f) |
@@ -1082,7 +1080,7 b' class localrepository(repo.repository):' | |||
|
1082 | 1080 | else: |
|
1083 | 1081 | self.dirstate.remove(f) |
|
1084 | 1082 | finally: |
|
1085 |
release( |
|
|
1083 | wlock.release() | |
|
1086 | 1084 | |
|
1087 | 1085 | def undelete(self, list): |
|
1088 | 1086 | manifests = [self.manifest.read(self.changelog.read(p)[0]) |
General Comments 0
You need to be logged in to leave comments.
Login now