Mercurial > hg
comparison mercurial/archival.py @ 48893:895085109842
archival: remove check for Python 2
Differential Revision: https://phab.mercurial-scm.org/D12296
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 10:31:00 -0700 |
parents | 640e1cb6a7de |
children | f254fc73d956 |
comparison
equal
deleted
inserted
replaced
48892:fa2b1a46d92e | 48893:895085109842 |
---|---|
303 mtime is the modified time, in seconds, or None to use the changeset time. | 303 mtime is the modified time, in seconds, or None to use the changeset time. |
304 | 304 |
305 subrepos tells whether to include subrepos. | 305 subrepos tells whether to include subrepos. |
306 """ | 306 """ |
307 | 307 |
308 if kind == b'txz' and not pycompat.ispy3: | |
309 raise error.Abort(_(b'xz compression is only available in Python 3')) | |
310 | |
311 if kind == b'files': | 308 if kind == b'files': |
312 if prefix: | 309 if prefix: |
313 raise error.Abort(_(b'cannot give prefix when archiving to files')) | 310 raise error.Abort(_(b'cannot give prefix when archiving to files')) |
314 else: | 311 else: |
315 prefix = tidyprefix(dest, kind, prefix) | 312 prefix = tidyprefix(dest, kind, prefix) |