Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 4308:a5cde03cd019
locate: don't print "file not found" messages.
This should fix issue204.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 04 Apr 2007 04:22:06 -0300 |
parents | e14b6980a014 |
children | d4f0405fadac |
comparison
equal
deleted
inserted
replaced
4307:702f48570eb3 | 4308:a5cde03cd019 |
---|---|
1622 else: | 1622 else: |
1623 node = None | 1623 node = None |
1624 | 1624 |
1625 ret = 1 | 1625 ret = 1 |
1626 for src, abs, rel, exact in cmdutil.walk(repo, pats, opts, node=node, | 1626 for src, abs, rel, exact in cmdutil.walk(repo, pats, opts, node=node, |
1627 badmatch=util.always, | |
1627 default='relglob'): | 1628 default='relglob'): |
1629 if src == 'b': | |
1630 continue | |
1628 if not node and repo.dirstate.state(abs) == '?': | 1631 if not node and repo.dirstate.state(abs) == '?': |
1629 continue | 1632 continue |
1630 if opts['fullpath']: | 1633 if opts['fullpath']: |
1631 ui.write(os.path.join(repo.root, abs), end) | 1634 ui.write(os.path.join(repo.root, abs), end) |
1632 else: | 1635 else: |