changeset 6108:5086576a2152

revert: only call dirstate.normal when we know the file is clean
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Thu, 14 Feb 2008 18:08:16 -0200
parents 41bb88cb913e
children 242595e612ed
files mercurial/commands.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Feb 14 18:08:16 2008 -0200
+++ b/mercurial/commands.py	Thu Feb 14 18:08:16 2008 -0200
@@ -2329,9 +2329,12 @@
                 checkout(f)
                 repo.dirstate.add(f)
 
+            normal = repo.dirstate.normallookup
+            if node == parent and p2 == nullid:
+                normal = repo.dirstate.normal
             for f in undelete[0]:
                 checkout(f)
-                repo.dirstate.normal(f)
+                normal(f)
 
             audit_path = util.path_auditor(repo.root)
             for f in remove[0]: