comparison tests/test-archive.t @ 42940:c04e0836f039

archive: add XZ support if built with Python 3
author David Demelier <markand@malikania.fr>
date Tue, 17 Sep 2019 10:47:31 +0000
parents 8df3471931cc
children 830eacef67f8
comparison
equal deleted inserted replaced
42939:06080afd0565 42940:c04e0836f039
564 Archive: ../old.zip 564 Archive: ../old.zip
565 \s*Length.* (re) 565 \s*Length.* (re)
566 *172*80*00:00*old/.hg_archival.txt (glob) 566 *172*80*00:00*old/.hg_archival.txt (glob)
567 *0*80*00:00*old/old (glob) 567 *0*80*00:00*old/old (glob)
568 568
569 test xz support only available in Python 3.4
570
571 #if py3
572 $ hg archive ../archive.txz
573 $ xz -l ../archive.txz | head -n1
574 Strms Blocks Compressed Uncompressed Ratio Check Filename
575 $ rm -f ../archive.txz
576 #else
577 $ hg archive ../archive.txz
578 abort: xz compression is only available in Python 3
579 [255]
580 #endif
581
569 show an error when a provided pattern matches no files 582 show an error when a provided pattern matches no files
570 583
571 $ hg archive -I file_that_does_not_exist.foo ../empty.zip 584 $ hg archive -I file_that_does_not_exist.foo ../empty.zip
572 abort: no files match the archive pattern 585 abort: no files match the archive pattern
573 [255] 586 [255]