Show More
@@ -142,7 +142,10 b' def archive(ui, repo, dest, **opts):' | |||
|
142 | 142 | The default is the basename of the archive, with suffixes removed. |
|
143 | 143 | ''' |
|
144 | 144 | |
|
145 |
|
|
|
145 | ctx = repo.changectx(opts['rev']) | |
|
146 | if not ctx: | |
|
147 | raise util.Abort(_('repository has no revisions')) | |
|
148 | node = ctx.node() | |
|
146 | 149 | dest = cmdutil.make_filename(repo, dest, node) |
|
147 | 150 | if os.path.realpath(dest) == repo.root: |
|
148 | 151 | raise util.Abort(_('repository root cannot be destination')) |
General Comments 0
You need to be logged in to leave comments.
Login now