Show More
@@ -133,7 +133,10 b' def archive(ui, repo, dest, **opts):' | |||
|
133 | 133 | The default is the basename of the archive, with suffixes removed. |
|
134 | 134 | ''' |
|
135 | 135 | |
|
136 |
|
|
|
136 | ctx = repo.changectx(opts['rev']) | |
|
137 | if not ctx: | |
|
138 | raise util.Abort(_('repository has no revisions')) | |
|
139 | node = ctx.node() | |
|
137 | 140 | dest = cmdutil.make_filename(repo, dest, node) |
|
138 | 141 | if os.path.realpath(dest) == repo.root: |
|
139 | 142 | raise util.Abort(_('repository root cannot be destination')) |
General Comments 0
You need to be logged in to leave comments.
Login now