##// END OF EJS Templates
Merge with crew-stable
Patrick Mezard -
r6656:2cbe0f72 merge default
parent child Browse files
Show More
@@ -276,17 +276,23 b' def addremove(repo, pats=[], opts={}, dr'
276 276 similarity = float(opts.get('similarity') or 0)
277 277 add, remove = [], []
278 278 mapping = {}
279 audit_path = util.path_auditor(repo.root)
279 280 m = match(repo, pats, opts)
280 281 for abs in repo.walk(m):
281 282 target = repo.wjoin(abs)
283 good = True
284 try:
285 audit_path(abs)
286 except:
287 good = False
282 288 rel = m.rel(abs)
283 289 exact = m.exact(abs)
284 if abs not in repo.dirstate:
290 if good and abs not in repo.dirstate:
285 291 add.append(abs)
286 292 mapping[abs] = rel, m.exact(abs)
287 293 if repo.ui.verbose or not exact:
288 294 repo.ui.status(_('adding %s\n') % ((pats and rel) or abs))
289 if repo.dirstate[abs] != 'r' and (not util.lexists(target)
295 if repo.dirstate[abs] != 'r' and (not good or not util.lexists(target)
290 296 or (os.path.isdir(target) and not os.path.islink(target))):
291 297 remove.append(abs)
292 298 mapping[abs] = rel, exact
General Comments 0
You need to be logged in to leave comments. Login now