mercurial/commands.py
changeset 4306 d4f0405fadac
parent 4276 cb6107f78b92
parent 4305 a5cde03cd019
child 4325 aa26759c6fb3
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1658,7 +1658,10 @@ def locate(ui, repo, *pats, **opts):
 
     ret = 1
     for src, abs, rel, exact in cmdutil.walk(repo, pats, opts, node=node,
+                                             badmatch=util.always,
                                              default='relglob'):
+        if src == 'b':
+            continue
         if not node and repo.dirstate.state(abs) == '?':
             continue
         if opts['fullpath']: