comparison tests/test-serve @ 4866:9858477ed74c

serve: respect settings from .hg/hgrc create_server was looking only at the root ui object, ignoring any settings from .hg/hgrc. To keep respecting command-line arguments, commands.serve must also call repo.ui.setconfig.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Wed, 11 Jul 2007 19:56:16 -0300
parents 9f952dd4413b
children e3a0c092b4e2
comparison
equal deleted inserted replaced
4865:439e2f2fde42 4866:9858477ed74c
1 #!/bin/sh 1 #!/bin/sh
2 2
3 hg init test 3 hg init test
4 cd test 4 cd test
5 5
6 echo '[web]' > .hg/hgrc
7 echo 'accesslog = access.log' >> .hg/hgrc
8
6 echo % Without -v 9 echo % Without -v
7 hg serve -a localhost -p 20063 -d --pid-file=hg.pid 10 hg serve -a localhost -p 20063 -d --pid-file=hg.pid
8 cat hg.pid >> "$DAEMON_PIDS" 11 cat hg.pid >> "$DAEMON_PIDS"
12 if [ -f access.log ]; then
13 echo 'access log created - .hg/hgrc respected'
14 fi
9 15
10 echo % With -v 16 echo % With -v
11 hg serve -a localhost -p 20064 -d --pid-file=hg.pid -v 17 hg serve -a localhost -p 20064 -d --pid-file=hg.pid -v
12 cat hg.pid >> "$DAEMON_PIDS" 18 cat hg.pid >> "$DAEMON_PIDS"