##// 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 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']:
@@ -30,9 +30,11 b' hg rm a'
30 hg ci -m m -d "1000000 0"
30 hg ci -m m -d "1000000 0"
31 hglocate a
31 hglocate a
32 hglocate NONEXISTENT
32 hglocate NONEXISTENT
33 hglocate relpath:NONEXISTENT
33 hglocate
34 hglocate
34 hglocate -r 0 a
35 hglocate -r 0 a
35 hglocate -r 0 NONEXISTENT
36 hglocate -r 0 NONEXISTENT
37 hglocate -r 0 relpath:NONEXISTENT
36 hglocate -r 0
38 hglocate -r 0
37 echo % -I/-X with relative path should work
39 echo % -I/-X with relative path should work
38 cd t
40 cd t
@@ -25,6 +25,8 b' hg locate a'
25
25
26 hg locate NONEXISTENT
26 hg locate NONEXISTENT
27
27
28 hg locate relpath:NONEXISTENT
29
28 hg locate
30 hg locate
29 b
31 b
30 dir.h/foo
32 dir.h/foo
@@ -38,6 +40,8 b' a'
38
40
39 hg locate -r 0 NONEXISTENT
41 hg locate -r 0 NONEXISTENT
40
42
43 hg locate -r 0 relpath:NONEXISTENT
44
41 hg locate -r 0
45 hg locate -r 0
42 a
46 a
43 b
47 b
General Comments 0
You need to be logged in to leave comments. Login now