##// END OF EJS Templates
locate: don't print "file not found" messages....
Alexis S. L. Carvalho -
r4308:a5cde03c default
parent child Browse files
Show More
@@ -1624,7 +1624,10 b' def locate(ui, repo, *pats, **opts):'
1624 1624
1625 1625 ret = 1
1626 1626 for src, abs, rel, exact in cmdutil.walk(repo, pats, opts, node=node,
1627 badmatch=util.always,
1627 1628 default='relglob'):
1629 if src == 'b':
1630 continue
1628 1631 if not node and repo.dirstate.state(abs) == '?':
1629 1632 continue
1630 1633 if opts['fullpath']:
@@ -30,9 +30,11 b' hg rm a'
30 30 hg ci -m m -d "1000000 0"
31 31 hglocate a
32 32 hglocate NONEXISTENT
33 hglocate relpath:NONEXISTENT
33 34 hglocate
34 35 hglocate -r 0 a
35 36 hglocate -r 0 NONEXISTENT
37 hglocate -r 0 relpath:NONEXISTENT
36 38 hglocate -r 0
37 39 echo % -I/-X with relative path should work
38 40 cd t
@@ -25,6 +25,8 b' hg locate a'
25 25
26 26 hg locate NONEXISTENT
27 27
28 hg locate relpath:NONEXISTENT
29
28 30 hg locate
29 31 b
30 32 dir.h/foo
@@ -38,6 +40,8 b' a'
38 40
39 41 hg locate -r 0 NONEXISTENT
40 42
43 hg locate -r 0 relpath:NONEXISTENT
44
41 45 hg locate -r 0
42 46 a
43 47 b
General Comments 0
You need to be logged in to leave comments. Login now