Show More
@@ -313,15 +313,15 b' def archive(repo, dest, node, kind, deco' | |||||
313 | ctx = repo[node] |
|
313 | ctx = repo[node] | |
314 | archiver = archivers[kind](dest, mtime or ctx.date()[0]) |
|
314 | archiver = archivers[kind](dest, mtime or ctx.date()[0]) | |
315 |
|
315 | |||
|
316 | if not match: | |||
|
317 | match = scmutil.matchall(repo) | |||
|
318 | ||||
316 | if repo.ui.configbool("ui", "archivemeta"): |
|
319 | if repo.ui.configbool("ui", "archivemeta"): | |
317 | name = '.hg_archival.txt' |
|
320 | name = '.hg_archival.txt' | |
318 |
if |
|
321 | if match(name): | |
319 | write(name, 0o644, False, lambda: buildmetadata(ctx)) |
|
322 | write(name, 0o644, False, lambda: buildmetadata(ctx)) | |
320 |
|
323 | |||
321 | if match: |
|
324 | files = [f for f in ctx.manifest().keys() if match(f)] | |
322 | files = [f for f in ctx.manifest().keys() if match(f)] |
|
|||
323 | else: |
|
|||
324 | files = ctx.manifest().keys() |
|
|||
325 | total = len(files) |
|
325 | total = len(files) | |
326 | if total: |
|
326 | if total: | |
327 | files.sort() |
|
327 | files.sort() |
General Comments 0
You need to be logged in to leave comments.
Login now