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

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Jan 16 12:21:25 EST 2019


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

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



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


More information about the Mercurial-devel mailing list