##// END OF EJS Templates
Handle unknown files better on update...
mpm@selenic.com -
r576:da11baf5 default
parent child Browse files
Show More
@@ -1092,9 +1092,12 b' class localrepository:'
1092 1092 # construct a working dir manifest
1093 1093 mw = m1.copy()
1094 1094 mfw = mf1.copy()
1095 umap = dict.fromkeys(u)
1096
1095 1097 for f in a + c + u:
1096 1098 mw[f] = ""
1097 1099 mfw[f] = util.is_exec(self.wjoin(f), mfw.get(f, False))
1100
1098 1101 for f in d:
1099 1102 if f in mw: del mw[f]
1100 1103
@@ -1106,6 +1109,7 b' class localrepository:'
1106 1109 if linear_path and f not in m2:
1107 1110 self.dirstate.forget((f,))
1108 1111
1112 # Compare manifests
1109 1113 for f, n in mw.iteritems():
1110 1114 if f in m2:
1111 1115 s = 0
@@ -1140,6 +1144,9 b' class localrepository:'
1140 1144 s = 1
1141 1145 else:
1142 1146 mark[f] = 1
1147 elif f in umap:
1148 # this unknown file is the same as the checkout
1149 get[f] = m2[f]
1143 1150
1144 1151 if not s and mfw[f] != mf2[f]:
1145 1152 if force:
General Comments 0
You need to be logged in to leave comments. Login now