Show More
@@ -467,7 +467,7 b' def cat(ui, repo, file1, *pats, **opts):' | |||
|
467 | 467 | ctx.node()): |
|
468 | 468 | fp = cmdutil.make_file(repo, opts['output'], ctx.node(), pathname=abs) |
|
469 | 469 | data = ctx.filectx(abs).data() |
|
470 |
if opts |
|
|
470 | if opts.get('decode'): | |
|
471 | 471 | data = repo.wwritedata(abs, data) |
|
472 | 472 | fp.write(data) |
|
473 | 473 | err = 0 |
@@ -2768,7 +2768,7 b' table = {' | |||
|
2768 | 2768 | (cat, |
|
2769 | 2769 | [('o', 'output', '', _('print output to file with formatted name')), |
|
2770 | 2770 | ('r', 'rev', '', _('print the given revision')), |
|
2771 |
(' |
|
|
2771 | ('', 'decode', None, _('apply any matching decode filter')), | |
|
2772 | 2772 | ] + walkopts, |
|
2773 | 2773 | _('hg cat [OPTION]... FILE...')), |
|
2774 | 2774 | "^clone": |
@@ -21,7 +21,7 b' options:' | |||
|
21 | 21 | |
|
22 | 22 | -o --output print output to file with formatted name |
|
23 | 23 | -r --rev print the given revision |
|
24 |
|
|
|
24 | --decode apply any matching decode filter | |
|
25 | 25 | -I --include include names matching the given patterns |
|
26 | 26 | -X --exclude exclude names matching the given patterns |
|
27 | 27 |
General Comments 0
You need to be logged in to leave comments.
Login now