equal
deleted
inserted
replaced
154 The default is the basename of the archive, with suffixes removed. |
154 The default is the basename of the archive, with suffixes removed. |
155 ''' |
155 ''' |
156 |
156 |
157 ctx = repo[opts.get('rev')] |
157 ctx = repo[opts.get('rev')] |
158 if not ctx: |
158 if not ctx: |
159 raise util.Abort(_('repository has no revisions')) |
159 raise util.Abort(_('no working directory: please specify a revision')) |
160 node = ctx.node() |
160 node = ctx.node() |
161 dest = cmdutil.make_filename(repo, dest, node) |
161 dest = cmdutil.make_filename(repo, dest, node) |
162 if os.path.realpath(dest) == repo.root: |
162 if os.path.realpath(dest) == repo.root: |
163 raise util.Abort(_('repository root cannot be destination')) |
163 raise util.Abort(_('repository root cannot be destination')) |
164 matchfn = cmdutil.match(repo, [], opts) |
164 matchfn = cmdutil.match(repo, [], opts) |