Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHG895085109842: archival: remove check for Python 2
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
( )
Alphare |
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/archival.py (3 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
183260e4d1f8 | 94199021b779 | Gregory Szorc | Feb 21 2022, 12:31 PM |
prefix is name of path to put before every archive member. | prefix is name of path to put before every archive member. | ||||
mtime is the modified time, in seconds, or None to use the changeset time. | mtime is the modified time, in seconds, or None to use the changeset time. | ||||
subrepos tells whether to include subrepos. | subrepos tells whether to include subrepos. | ||||
""" | """ | ||||
if kind == b'txz' and not pycompat.ispy3: | |||||
raise error.Abort(_(b'xz compression is only available in Python 3')) | |||||
if kind == b'files': | if kind == b'files': | ||||
if prefix: | if prefix: | ||||
raise error.Abort(_(b'cannot give prefix when archiving to files')) | raise error.Abort(_(b'cannot give prefix when archiving to files')) | ||||
else: | else: | ||||
prefix = tidyprefix(dest, kind, prefix) | prefix = tidyprefix(dest, kind, prefix) | ||||
def write(name, mode, islink, getdata): | def write(name, mode, islink, getdata): | ||||
data = getdata() | data = getdata() |