Patchwork D5602: tests: make python oneliner portable to python 3 in remotefilelog test

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 5:21 p.m.
Message ID <780eff738acb494361fb39dd1cbf6172@localhost.localdomain>
Download mbox | patch
Permalink /patch/37822/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 5:21 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa495435d980e: tests: make python oneliner portable to python 3 in remotefilelog test (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5602?vs=13262&id=13281

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

AFFECTED FILES
  tests/test-remotefilelog-http.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-remotefilelog-http.t b/tests/test-remotefilelog-http.t
--- a/tests/test-remotefilelog-http.t
+++ b/tests/test-remotefilelog-http.t
@@ -15,7 +15,7 @@ 
 
 Build a query string for later use:
   $ GET=`hg debugdata -m 0 | $PYTHON -c \
-  > 'import sys ; print [("?cmd=x_rfl_getfile&file=%s&node=%s" % tuple(s.split("\0"))) for s in sys.stdin.read().splitlines()][0]'`
+  > 'import sys ; print([("?cmd=x_rfl_getfile&file=%s&node=%s" % tuple(s.split("\0"))) for s in sys.stdin.read().splitlines()][0])'`
 
   $ cd ..
   $ cat hg1.pid >> $DAEMON_PIDS