Patchwork D3612: py3: use pycompat.fsencode() to convert tempfile name to bytes

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:40 p.m.
Message ID <10e39555cdd2e0df2284b72c3e8475dc@localhost.localdomain>
Download mbox | patch
Permalink /patch/31735/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:40 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGca1cf9b3cce7: py3: use pycompat.fsencode() to convert tempfile name to bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3612?vs=8783&id=8817

REVISION DETAIL
  https://phab.mercurial-scm.org/D3612

AFFECTED FILES
  hgext/infinitepush/__init__.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py
+++ b/hgext/infinitepush/__init__.py
@@ -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')