mercurial/commands.py
changeset 31039 9f28424d6483
parent 31038 66e1eba45f02
child 31040 bcc9d4ebf81b
equal deleted inserted replaced
31038:66e1eba45f02 31039: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)