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