Mercurial > hg-stable
changeset 7067:40d105a12cac
status: don't warn about missing files present in base revision (issue1323)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 08 Oct 2008 16:22:10 -0500 |
parents | 865c5be0f8df |
children | 57377fa7eda2 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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