mercurial/commands.py
branchstable
changeset 15373 9a2582e325a5
parent 15360 73628b32d0c0
child 15381 c519cd8f0169
--- a/mercurial/commands.py	Thu Oct 27 17:22:04 2011 -0500
+++ b/mercurial/commands.py	Wed Oct 26 18:47:12 2011 +0200
@@ -4756,15 +4756,14 @@
                     # only need parent manifest in this unlikely case,
                     # so do not read by default
                     pmf = repo[parent].manifest()
-                if abs in pmf:
-                    if mfentry:
-                        # if version of file is same in parent and target
-                        # manifests, do nothing
-                        if (pmf[abs] != mfentry or
-                            pmf.flags(abs) != mf.flags(abs)):
-                            handle(revert, False)
-                    else:
-                        handle(remove, False)
+                if abs in pmf and mfentry:
+                    # if version of file is same in parent and target
+                    # manifests, do nothing
+                    if (pmf[abs] != mfentry or
+                        pmf.flags(abs) != mf.flags(abs)):
+                        handle(revert, False)
+                else:
+                    handle(remove, False)
 
         if not opts.get('dry_run'):
             def checkout(f):