Show More
@@ -1,23 +1,23 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | hgserve() |
|
4 | 4 | { |
|
5 | 5 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -E errors.log -v $@ \ |
|
6 | 6 | | sed -e 's/:[0-9][0-9]*//g' -e 's/http:\/\/[^/]*\//http:\/\/localhost\//' |
|
7 | 7 | cat hg.pid >> "$DAEMON_PIDS" |
|
8 | 8 | } |
|
9 | 9 | |
|
10 | 10 | hg init a |
|
11 | 11 | hg --encoding utf-8 -R a branch æ |
|
12 | 12 | echo foo > a/foo |
|
13 | 13 | hg -R a ci -Am foo |
|
14 | 14 | |
|
15 | 15 | hgserve -R a --config web.push_ssl=False --config web.allow_push=* --encoding latin1 |
|
16 | hg clone http://localhost:$HGPORT1 b | |
|
16 | hg --encoding utf-8 clone http://localhost:$HGPORT1 b | |
|
17 | 17 | hg --encoding utf-8 -R b log |
|
18 | 18 | echo bar >> b/foo |
|
19 | 19 | hg -R b ci -m bar |
|
20 | 20 | hg --encoding utf-8 -R b push | sed "s/$HGPORT1/PORT/" |
|
21 | 21 | hg -R a --encoding utf-8 log |
|
22 | 22 | |
|
23 | 23 | kill `cat hg.pid` |
General Comments 0
You need to be logged in to leave comments.
Login now