Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG54e2abc73686: tests: use `hello` not `capabilities` over ssh
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-narrow-clone-non-narrow-server.t (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
$ hg serve -a localhost -p $HGPORT1 --config extensions.narrow=! -d \ | $ hg serve -a localhost -p $HGPORT1 --config extensions.narrow=! -d \ | ||||
> --pid-file=hg.pid | > --pid-file=hg.pid | ||||
$ cat hg.pid >> "$DAEMON_PIDS" | $ cat hg.pid >> "$DAEMON_PIDS" | ||||
$ hg serve -a localhost -p $HGPORT2 -d --pid-file=hg.pid | $ hg serve -a localhost -p $HGPORT2 -d --pid-file=hg.pid | ||||
$ cat hg.pid >> "$DAEMON_PIDS" | $ cat hg.pid >> "$DAEMON_PIDS" | ||||
Verify that narrow is advertised in the bundle2 capabilities: | Verify that narrow is advertised in the bundle2 capabilities: | ||||
$ echo capabilities | hg -R . serve --stdio | \ | $ echo hello | hg -R . serve --stdio | \ | ||||
> python -c "import sys, urllib; print urllib.unquote_plus(list(sys.stdin)[1])" | grep narrow | > python -c "import sys, urllib; print urllib.unquote_plus(list(sys.stdin)[1])" | grep narrow | ||||
narrow=v0 | narrow=v0 | ||||
$ cd .. | $ cd .. | ||||
$ hg clone --narrow --include f1 http://localhost:$HGPORT1/ narrowclone | $ hg clone --narrow --include f1 http://localhost:$HGPORT1/ narrowclone | ||||
requesting all changes | requesting all changes | ||||
abort: server doesn't support narrow clones | abort: server doesn't support narrow clones |