1172 Returns 0 on success. |
1172 Returns 0 on success. |
1173 """ |
1173 """ |
1174 ctx = scmutil.revsingle(repo, opts.get('rev')) |
1174 ctx = scmutil.revsingle(repo, opts.get('rev')) |
1175 m = scmutil.match(ctx, (file1,) + pats, opts) |
1175 m = scmutil.match(ctx, (file1,) + pats, opts) |
1176 |
1176 |
1177 return cmdutil.cat(ui, repo, ctx, m, **opts) |
1177 return cmdutil.cat(ui, repo, ctx, m, '', **opts) |
1178 |
1178 |
1179 @command('^clone', |
1179 @command('^clone', |
1180 [('U', 'noupdate', None, |
1180 [('U', 'noupdate', None, |
1181 _('the clone will include an empty working copy (only a repository)')), |
1181 _('the clone will include an empty working copy (only a repository)')), |
1182 ('u', 'updaterev', '', _('revision, tag or branch to check out'), _('REV')), |
1182 ('u', 'updaterev', '', _('revision, tag or branch to check out'), _('REV')), |