Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 31059:9f28424d6483
locate: enable pager
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 06 Feb 2017 23:04:10 -0500 |
parents | 66e1eba45f02 |
children | bcc9d4ebf81b |
comparison
equal
deleted
inserted
replaced
31058:66e1eba45f02 | 31059:9f28424d6483 |
---|---|
3290 ret = 1 | 3290 ret = 1 |
3291 ctx = repo[rev] | 3291 ctx = repo[rev] |
3292 m = scmutil.match(ctx, pats, opts, default='relglob', | 3292 m = scmutil.match(ctx, pats, opts, default='relglob', |
3293 badfn=lambda x, y: False) | 3293 badfn=lambda x, y: False) |
3294 | 3294 |
3295 ui.pager('locate') | |
3295 for abs in ctx.matches(m): | 3296 for abs in ctx.matches(m): |
3296 if opts.get('fullpath'): | 3297 if opts.get('fullpath'): |
3297 ui.write(repo.wjoin(abs), end) | 3298 ui.write(repo.wjoin(abs), end) |
3298 else: | 3299 else: |
3299 ui.write(((pats and m.rel(abs)) or abs), end) | 3300 ui.write(((pats and m.rel(abs)) or abs), end) |