equal
deleted
inserted
replaced
1 $ "$TESTDIR/hghave" serve || exit 80 |
1 $ "$TESTDIR/hghave" killdaemons || exit 80 |
2 |
2 |
3 $ hgserve() { |
3 $ hgserve() { |
4 > hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -E errors.log -v $@ |
4 > hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid \ |
|
5 > -E errors.log -v $@ > startup.log |
|
6 > # Grepping hg serve stdout would hang on Windows |
|
7 > grep -v 'listening at' startup.log |
5 > cat hg.pid >> "$DAEMON_PIDS" |
8 > cat hg.pid >> "$DAEMON_PIDS" |
6 > } |
9 > } |
7 $ hg init a |
10 $ hg init a |
8 $ hg --encoding utf-8 -R a branch æ |
11 $ hg --encoding utf-8 -R a branch æ |
9 marked working directory as branch \xc3\xa6 (esc) |
12 marked working directory as branch \xc3\xa6 (esc) |
10 (branches are permanent and global, did you want a bookmark?) |
13 (branches are permanent and global, did you want a bookmark?) |
11 $ echo foo > a/foo |
14 $ echo foo > a/foo |
12 $ hg -R a ci -Am foo |
15 $ hg -R a ci -Am foo |
13 adding foo |
16 adding foo |
14 $ hgserve -R a --config web.push_ssl=False --config web.allow_push=* --encoding latin1 |
17 $ hgserve -R a --config web.push_ssl=False --config web.allow_push=* --encoding latin1 |
15 listening at http://*:$HGPORT1/ (bound to 127.0.0.1:$HGPORT1) (glob) |
|
16 $ hg --encoding utf-8 clone http://localhost:$HGPORT1 b |
18 $ hg --encoding utf-8 clone http://localhost:$HGPORT1 b |
17 requesting all changes |
19 requesting all changes |
18 adding changesets |
20 adding changesets |
19 adding manifests |
21 adding manifests |
20 adding file changes |
22 adding file changes |
50 branch: \xc3\xa6 (esc) |
52 branch: \xc3\xa6 (esc) |
51 user: test |
53 user: test |
52 date: Thu Jan 01 00:00:00 1970 +0000 |
54 date: Thu Jan 01 00:00:00 1970 +0000 |
53 summary: foo |
55 summary: foo |
54 |
56 |
55 $ kill `cat hg.pid` |
57 $ "$TESTDIR/killdaemons.py" hg.pid |
56 |
58 |
57 verify 7e7d56fe4833 (encoding fallback in branchmap to maintain compatibility with 1.3.x) |
59 verify 7e7d56fe4833 (encoding fallback in branchmap to maintain compatibility with 1.3.x) |
58 |
60 |
59 $ cat <<EOF > oldhg |
61 $ cat <<EOF > oldhg |
60 > import sys |
62 > import sys |