Show More
@@ -3683,11 +3683,12 b' def locate(ui, repo, *pats, **opts):' | |||
|
3683 | 3683 | filesgen = sorted(repo.dirstate.matches(m)) |
|
3684 | 3684 | else: |
|
3685 | 3685 | filesgen = ctx.matches(m) |
|
3686 | uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=bool(pats)) | |
|
3686 | 3687 | for abs in filesgen: |
|
3687 | 3688 | if opts.get('fullpath'): |
|
3688 | 3689 | ui.write(repo.wjoin(abs), end) |
|
3689 | 3690 | else: |
|
3690 |
ui.write(( |
|
|
3691 | ui.write(uipathfn(abs), end) | |
|
3691 | 3692 | ret = 0 |
|
3692 | 3693 | |
|
3693 | 3694 | return ret |
General Comments 0
You need to be logged in to leave comments.
Login now