changeset 38121:ca1cf9b3cce7

py3: use pycompat.fsencode() to convert tempfile name to bytes Differential Revision: https://phab.mercurial-scm.org/D3612
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 18:56:00 +0530
parents 307b19c7c043
children f0fadc5bea21
files hgext/infinitepush/__init__.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/infinitepush/__init__.py	Sat May 19 18:55:30 2018 +0530
+++ b/hgext/infinitepush/__init__.py	Sat May 19 18:56:00 2018 +0530
@@ -1023,7 +1023,8 @@
 
     bundle = None
     try:  # guards bundle
-        bundlepath = "bundle:%s+%s" % (op.repo.root, bundlefile)
+        bundlepath = "bundle:%s+%s" % (op.repo.root,
+                                       pycompat.fsencode(bundlefile))
         bundle = hg.repository(op.repo.ui, bundlepath)
 
         bookmark = params.get('bookmark')