929 |
929 |
930 dest = make_filename(repo, repo.changelog, dest, node) |
930 dest = make_filename(repo, repo.changelog, dest, node) |
931 prefix = make_filename(repo, repo.changelog, opts['prefix'], node) |
931 prefix = make_filename(repo, repo.changelog, opts['prefix'], node) |
932 if os.path.realpath(dest) == repo.root: |
932 if os.path.realpath(dest) == repo.root: |
933 raise util.Abort(_('repository root cannot be destination')) |
933 raise util.Abort(_('repository root cannot be destination')) |
934 _, matchfn, _ = matchpats(repo, [], opts) |
934 dummy, matchfn, dummy = matchpats(repo, [], opts) |
935 archival.archive(repo, dest, node, opts.get('type') or 'files', |
935 archival.archive(repo, dest, node, opts.get('type') or 'files', |
936 not opts['no_decode'], matchfn, prefix) |
936 not opts['no_decode'], matchfn, prefix) |
937 |
937 |
938 def backout(ui, repo, rev, **opts): |
938 def backout(ui, repo, rev, **opts): |
939 '''reverse effect of earlier changeset |
939 '''reverse effect of earlier changeset |
2929 ('n', 'number', None, _('list the revision number (default)')), |
2929 ('n', 'number', None, _('list the revision number (default)')), |
2930 ('c', 'changeset', None, _('list the changeset')), |
2930 ('c', 'changeset', None, _('list the changeset')), |
2931 ('I', 'include', [], _('include names matching the given patterns')), |
2931 ('I', 'include', [], _('include names matching the given patterns')), |
2932 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2932 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2933 _('hg annotate [-r REV] [-a] [-u] [-d] [-n] [-c] FILE...')), |
2933 _('hg annotate [-r REV] [-a] [-u] [-d] [-n] [-c] FILE...')), |
2934 'archive': |
2934 "archive": |
2935 (archive, |
2935 (archive, |
2936 [('', 'no-decode', None, _('do not pass files through decoders')), |
2936 [('', 'no-decode', None, _('do not pass files through decoders')), |
2937 ('p', 'prefix', '', _('directory prefix for files in archive')), |
2937 ('p', 'prefix', '', _('directory prefix for files in archive')), |
2938 ('r', 'rev', '', _('revision to distribute')), |
2938 ('r', 'rev', '', _('revision to distribute')), |
2939 ('t', 'type', '', _('type of distribution to create')), |
2939 ('t', 'type', '', _('type of distribution to create')), |