Mercurial > hg
comparison tests/test-branchmap @ 9671:9471d9a900b4
transfer branchmap branch names over the wire in utf-8
author | Henrik Stuart <henrik.stuart@edlund.dk> |
---|---|
date | Mon, 26 Oct 2009 13:37:39 +0100 |
parents | |
children | 79e749b26b2b |
comparison
equal
deleted
inserted
replaced
9670:7d56b6ffef72 | 9671:9471d9a900b4 |
---|---|
1 #!/bin/sh | |
2 | |
3 hgserve() | |
4 { | |
5 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -E errors.log -v $@ \ | |
6 | sed -e 's/:[0-9][0-9]*//g' -e 's/http:\/\/[^/]*\//http:\/\/localhost\//' | |
7 cat hg.pid >> "$DAEMON_PIDS" | |
8 } | |
9 | |
10 hg init a | |
11 hg --encoding utf-8 -R a branch æ | |
12 echo foo > a/foo | |
13 hg -R a ci -Am foo | |
14 | |
15 hgserve -R a --config web.push_ssl=False --config web.allow_push=* --encoding latin1 | |
16 hg clone http://localhost:$HGPORT1 b | |
17 hg --encoding utf-8 -R b log | |
18 echo bar >> b/foo | |
19 hg -R b ci -m bar | |
20 hg --encoding utf-8 -R b push | sed "s/$HGPORT1/PORT/" | |
21 hg -R a --encoding utf-8 log | |
22 | |
23 kill `cat hg.pid` |