Mercurial > hg
comparison tests/test-narrow-clone-non-narrow-server.t @ 36993:f4c7dc24e889
py3: use print as a function in tests/test-narrow-clone-non-narrow-server.t
Differential Revision: https://phab.mercurial-scm.org/D2892
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 19 Mar 2018 00:04:38 +0530 |
parents | c18ae7a07019 |
children | afe624d78d43 |
comparison
equal
deleted
inserted
replaced
36992:ccc2d5f10421 | 36993:f4c7dc24e889 |
---|---|
17 $ hg serve -a localhost -p $HGPORT2 -d --pid-file=hg.pid | 17 $ hg serve -a localhost -p $HGPORT2 -d --pid-file=hg.pid |
18 $ cat hg.pid >> "$DAEMON_PIDS" | 18 $ cat hg.pid >> "$DAEMON_PIDS" |
19 | 19 |
20 Verify that narrow is advertised in the bundle2 capabilities: | 20 Verify that narrow is advertised in the bundle2 capabilities: |
21 $ echo hello | hg -R . serve --stdio | \ | 21 $ echo hello | hg -R . serve --stdio | \ |
22 > $PYTHON -c "import sys, urllib; print urllib.unquote_plus(list(sys.stdin)[1])" | grep narrow | 22 > $PYTHON -c "from __future__ import print_function; import sys, urllib; print(urllib.unquote_plus(list(sys.stdin)[1]))" | grep narrow |
23 narrow=v0 | 23 narrow=v0 |
24 | 24 |
25 $ cd .. | 25 $ cd .. |
26 | 26 |
27 $ hg clone --narrow --include f1 http://localhost:$HGPORT1/ narrowclone | 27 $ hg clone --narrow --include f1 http://localhost:$HGPORT1/ narrowclone |