Show More
@@ -673,6 +673,13 b' def has_tic():' | |||||
673 | return False |
|
673 | return False | |
674 |
|
674 | |||
675 |
|
675 | |||
|
676 | @check("xz", "xz compression utility") | |||
|
677 | def has_xz(): | |||
|
678 | # When Windows invokes a subprocess in shell mode, it uses `cmd.exe`, which | |||
|
679 | # only knows `where`, not `which`. So invoke MSYS shell explicitly. | |||
|
680 | return matchoutput("sh -c 'test -x \"`which xz`\"'", b'') | |||
|
681 | ||||
|
682 | ||||
676 | @check("msys", "Windows with MSYS") |
|
683 | @check("msys", "Windows with MSYS") | |
677 | def has_msys(): |
|
684 | def has_msys(): | |
678 | return os.getenv('MSYSTEM') |
|
685 | return os.getenv('MSYSTEM') |
@@ -574,8 +574,8 b' test xz support only available in Python' | |||||
574 |
|
574 | |||
575 | #if py3 |
|
575 | #if py3 | |
576 | $ hg archive ../archive.txz |
|
576 | $ hg archive ../archive.txz | |
577 | $ xz -l ../archive.txz | head -n1 |
|
577 | $ which xz >/dev/null && xz -l ../archive.txz | head -n1 || true | |
578 | Strms Blocks Compressed Uncompressed Ratio Check Filename |
|
578 | Strms Blocks Compressed Uncompressed Ratio Check Filename (xz !) | |
579 | $ rm -f ../archive.txz |
|
579 | $ rm -f ../archive.txz | |
580 | #else |
|
580 | #else | |
581 | $ hg archive ../archive.txz |
|
581 | $ hg archive ../archive.txz |
General Comments 0
You need to be logged in to leave comments.
Login now