##// END OF EJS Templates
revert: only call dirstate.normal when we know the file is clean
Alexis S. L. Carvalho -
r6108:5086576a default
parent child Browse files
Show More
@@ -2329,9 +2329,12 b' def revert(ui, repo, *pats, **opts):'
2329 checkout(f)
2329 checkout(f)
2330 repo.dirstate.add(f)
2330 repo.dirstate.add(f)
2331
2331
2332 normal = repo.dirstate.normallookup
2333 if node == parent and p2 == nullid:
2334 normal = repo.dirstate.normal
2332 for f in undelete[0]:
2335 for f in undelete[0]:
2333 checkout(f)
2336 checkout(f)
2334 repo.dirstate.normal(f)
2337 normal(f)
2335
2338
2336 audit_path = util.path_auditor(repo.root)
2339 audit_path = util.path_auditor(repo.root)
2337 for f in remove[0]:
2340 for f in remove[0]:
General Comments 0
You need to be logged in to leave comments. Login now