D2655: archival: tar file modes need to be sysstrs
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Mar 4 18:12:02 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2655
AFFECTED FILES
mercurial/archival.py
CHANGE DETAILS
diff --git a/mercurial/archival.py b/mercurial/archival.py
--- a/mercurial/archival.py
+++ b/mercurial/archival.py
@@ -162,9 +162,11 @@
zlib.Z_BEST_COMPRESSION,
fileobj, timestamp=mtime)
self.fileobj = gzfileobj
- return tarfile.TarFile.taropen(name, mode, gzfileobj)
+ return tarfile.TarFile.taropen(
+ name, pycompat.sysstr(mode), gzfileobj)
else:
- return tarfile.open(name, mode + kind, fileobj)
+ return tarfile.open(
+ name, pycompat.sysstr(mode + kind), fileobj)
if isinstance(dest, str):
self.z = taropen('w:', name=dest)
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list