Mercurial > hg
comparison tests/test-largefiles-wireproto.t @ 28549:e01bd7385f4f
tests: reorder hg serve commands
chg currently does not support hg serve -d. It has a quick path testing if the
command is hg serve -d and fallbacks to hg if so. But the test only works if
"serve" is the first argument since the test wants to avoid false positives
(for example, "-r serve" is different).
This patch reorders "hg server" commands in tests, making them chg friendly.
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 15 Mar 2016 09:51:54 +0000 |
parents | 19b4a2087dfc |
children | 305f9c36a0f5 |
comparison
equal
deleted
inserted
replaced
28548:b7a31068cc80 | 28549:e01bd7385f4f |
---|---|
43 added 1 changesets with 1 changes to 1 files | 43 added 1 changesets with 1 changes to 1 files |
44 updating to branch default | 44 updating to branch default |
45 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 45 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
46 | 46 |
47 largefiles clients still work with vanilla servers | 47 largefiles clients still work with vanilla servers |
48 $ hg --config extensions.largefiles=! serve -R r1 -d -p $HGPORT1 --pid-file hg.pid | 48 $ hg serve --config extensions.largefiles=! -R r1 -d -p $HGPORT1 --pid-file hg.pid |
49 $ cat hg.pid >> $DAEMON_PIDS | 49 $ cat hg.pid >> $DAEMON_PIDS |
50 $ hg clone http://localhost:$HGPORT1 r3 | 50 $ hg clone http://localhost:$HGPORT1 r3 |
51 requesting all changes | 51 requesting all changes |
52 adding changesets | 52 adding changesets |
53 adding manifests | 53 adding manifests |
147 $ echo c2 > f2 | 147 $ echo c2 > f2 |
148 $ hg add --large f2 | 148 $ hg add --large f2 |
149 $ hg commit -m "m2" | 149 $ hg commit -m "m2" |
150 Invoking status precommit hook | 150 Invoking status precommit hook |
151 A f2 | 151 A f2 |
152 $ hg --config extensions.largefiles=! -R ../r6 serve -d -p $HGPORT --pid-file ../hg.pid | 152 $ hg serve --config extensions.largefiles=! -R ../r6 -d -p $HGPORT --pid-file ../hg.pid |
153 $ cat ../hg.pid >> $DAEMON_PIDS | 153 $ cat ../hg.pid >> $DAEMON_PIDS |
154 $ hg push http://localhost:$HGPORT | 154 $ hg push http://localhost:$HGPORT |
155 pushing to http://localhost:$HGPORT/ | 155 pushing to http://localhost:$HGPORT/ |
156 searching for changes | 156 searching for changes |
157 abort: http://localhost:$HGPORT/ does not appear to be a largefile store | 157 abort: http://localhost:$HGPORT/ does not appear to be a largefile store |