status: don't warn about missing files present in base revision (issue1323)
authorMatt Mackall <mpm@selenic.com>
Wed, 08 Oct 2008 16:22:10 -0500
changeset 7067 40d105a12cac
parent 7066 865c5be0f8df
child 7068 57377fa7eda2
status: don't warn about missing files present in base revision (issue1323)
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Oct 08 16:22:08 2008 -0500
+++ b/mercurial/localrepo.py	Wed Oct 08 16:22:10 2008 -0500
@@ -959,6 +959,13 @@
         match = match or match_.always(self.root, self.getcwd())
         listignored, listclean, listunknown = ignored, clean, unknown
 
+        if not parentworking:
+            def bad(f, msg):
+                if f not in ctx1:
+                    self.ui.warn('%s: %s\n' % (self.dirstate.pathto(f), msg))
+                return False
+            match.bad = bad
+
         if working: # we need to scan the working dir
             s = self.dirstate.status(match, listignored, listclean, listunknown)
             cmp, modified, added, removed, deleted, unknown, ignored, clean = s