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) |
|
981 | finally: | |
|
982 | wlock.release() | |
|
982 | 983 |
|
|
983 | 984 |
|
|
984 | finally: | |
|
985 | release(wlock) | |
|
986 | 985 | |
|
987 | 986 | if not parentworking: |
|
988 | 987 | mf1 = mfmatches(ctx1) |
@@ -1062,8 +1061,6 b' class localrepository(repo.repository):' | |||
|
1062 | 1061 | wlock.release() |
|
1063 | 1062 | |
|
1064 | 1063 | def remove(self, list, unlink=False): |
|
1065 | wlock = None | |
|
1066 | try: | |
|
1067 | 1064 |
|
|
1068 | 1065 |
|
|
1069 | 1066 |
|
@@ -1072,6 +1069,7 b' class localrepository(repo.repository):' | |||
|
1072 | 1069 |
|
|
1073 | 1070 |
|
|
1074 | 1071 |
|
|
1072 | try: | |
|
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