Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 31049:d6a703af975b
cat: migrate to modern pager API
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 06 Feb 2017 22:57:52 -0500 |
parents | 3c22ad83868b |
children | ed0023e47412 |
comparison
equal
deleted
inserted
replaced
31048:3c22ad83868b | 31049:d6a703af975b |
---|---|
1415 Returns 0 on success. | 1415 Returns 0 on success. |
1416 """ | 1416 """ |
1417 ctx = scmutil.revsingle(repo, opts.get('rev')) | 1417 ctx = scmutil.revsingle(repo, opts.get('rev')) |
1418 m = scmutil.match(ctx, (file1,) + pats, opts) | 1418 m = scmutil.match(ctx, (file1,) + pats, opts) |
1419 | 1419 |
1420 ui.pager('cat') | |
1420 return cmdutil.cat(ui, repo, ctx, m, '', **opts) | 1421 return cmdutil.cat(ui, repo, ctx, m, '', **opts) |
1421 | 1422 |
1422 @command('^clone', | 1423 @command('^clone', |
1423 [('U', 'noupdate', None, _('the clone will include an empty working ' | 1424 [('U', 'noupdate', None, _('the clone will include an empty working ' |
1424 'directory (only a repository)')), | 1425 'directory (only a repository)')), |