Show More
@@ -1620,6 +1620,7 b' def locate(ui, repo, *pats, **opts):' | |||||
1620 | else: |
|
1620 | else: | |
1621 | node = None |
|
1621 | node = None | |
1622 |
|
1622 | |||
|
1623 | ret = 1 | |||
1623 | for src, abs, rel, exact in cmdutil.walk(repo, pats, opts, node=node, |
|
1624 | for src, abs, rel, exact in cmdutil.walk(repo, pats, opts, node=node, | |
1624 | default='relglob'): |
|
1625 | default='relglob'): | |
1625 | if not node and repo.dirstate.state(abs) == '?': |
|
1626 | if not node and repo.dirstate.state(abs) == '?': | |
@@ -1628,6 +1629,9 b' def locate(ui, repo, *pats, **opts):' | |||||
1628 | ui.write(os.path.join(repo.root, abs), end) |
|
1629 | ui.write(os.path.join(repo.root, abs), end) | |
1629 | else: |
|
1630 | else: | |
1630 | ui.write(((pats and rel) or abs), end) |
|
1631 | ui.write(((pats and rel) or abs), end) | |
|
1632 | ret = 0 | |||
|
1633 | ||||
|
1634 | return ret | |||
1631 |
|
1635 | |||
1632 | def log(ui, repo, *pats, **opts): |
|
1636 | def log(ui, repo, *pats, **opts): | |
1633 | """show revision history of entire repository or files |
|
1637 | """show revision history of entire repository or files |
@@ -10,8 +10,8 b' mkdir t' | |||||
10 | echo 0 > t/x |
|
10 | echo 0 > t/x | |
11 | hg ci -A -m m -d "1000000 0" |
|
11 | hg ci -A -m m -d "1000000 0" | |
12 | touch nottracked |
|
12 | touch nottracked | |
13 | hg locate a |
|
13 | hg locate a && echo locate succeeded || echo locate failed | |
14 | hg locate NONEXISTENT |
|
14 | hg locate NONEXISTENT && echo locate succeeded || echo locate failed | |
15 | hg locate |
|
15 | hg locate | |
16 | hg rm a |
|
16 | hg rm a | |
17 | hg ci -m m -d "1000000 0" |
|
17 | hg ci -m m -d "1000000 0" |
General Comments 0
You need to be logged in to leave comments.
Login now