Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Augie Fackler
- Mon, 13 Jul 2020 17:06:12
Show More
hgdemandimport/__init__.py
0
+1
0
@@
-56,6
+56,7
b' IGNORES = {'
56
56
'__builtin__' ,
57
57
'builtins' ,
58
58
'urwid.command_map' , # for pudb
59
'lzma' ,
59
60
}
60
61
61
62
_pypy = '__pypy__' in sys . builtin_module_names
mercurial/archival.py
0
+6
-1
@@
-189,7
+189,12
b' class tarit(object):'
189
189
name , pycompat . sysstr ( mode ), gzfileobj
190
190
)
191
191
else :
192
return tarfile . open ( name , pycompat . sysstr ( mode + kind ), fileobj )
192
try :
193
return tarfile . open (
194
name , pycompat . sysstr ( mode + kind ), fileobj
195
)
196
except tarfile . CompressionError as e :
197
raise error . Abort ( pycompat . bytestr ( e ))
193
198
194
199
if isinstance ( dest , bytes ):
195
200
self . z = taropen ( b 'w:' , name = dest )
tests/hghave.py
0
+11
0
@@
-1061,3
+1061,14
b' def has_rustfmt():'
1061
1061
return matchoutput (
1062
1062
'`rustup which --toolchain nightly rustfmt` --version' , b 'rustfmt'
1063
1063
)
1064
1065
1066
@check ( "lzma" , "python lzma module" )
1067
def has_lzma ():
1068
try :
1069
import _lzma
1070
1071
_lzma . FORMAT_XZ
1072
return True
1073
except ImportError :
1074
return False
tests/test-archive.t
0
+8
-2
@@
-576,12
+576,18
b' old file -- date clamped to 1980'
576
576
577
577
test xz support only available in Python 3.4
578
578
579
#if py3
579
#if lzma
580
580
$ hg archive .. / archive . txz
581
581
$ which xz >/ dev / null && xz - l .. / archive . txz | head - n1 || true
582
582
Strms Blocks Compressed Uncompressed Ratio Check Filename ( xz ! )
583
583
$ rm - f .. / archive . txz
584
#else
584
#endif
585
#if py3 no-lzma
586
$ hg archive .. / archive . txz
587
abort : lzma module is not available
588
[ 255 ]
589
#endif
590
#if no-py3
585
591
$ hg archive .. / archive . txz
586
592
abort : xz compression is only available in Python 3
587
593
[ 255 ]
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages