equal
deleted
inserted
replaced
131 Each member added to an archive file has a directory prefix |
131 Each member added to an archive file has a directory prefix |
132 prepended. Use "-p" to specify a format string for the prefix. |
132 prepended. Use "-p" to specify a format string for the prefix. |
133 The default is the basename of the archive, with suffixes removed. |
133 The default is the basename of the archive, with suffixes removed. |
134 ''' |
134 ''' |
135 |
135 |
136 node = repo.changectx(opts['rev']).node() |
136 ctx = repo.changectx(opts['rev']) |
|
137 if not ctx: |
|
138 raise util.Abort(_('repository has no revisions')) |
|
139 node = ctx.node() |
137 dest = cmdutil.make_filename(repo, dest, node) |
140 dest = cmdutil.make_filename(repo, dest, node) |
138 if os.path.realpath(dest) == repo.root: |
141 if os.path.realpath(dest) == repo.root: |
139 raise util.Abort(_('repository root cannot be destination')) |
142 raise util.Abort(_('repository root cannot be destination')) |
140 dummy, matchfn, dummy = cmdutil.matchpats(repo, [], opts) |
143 dummy, matchfn, dummy = cmdutil.matchpats(repo, [], opts) |
141 kind = opts.get('type') or 'files' |
144 kind = opts.get('type') or 'files' |