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