Mercurial > hg
view tests/test-serve @ 6297:fed1a9c22076
dirstate.remove: during merges, remember the previous file state
We encode the previous state as a negative file size (AFAICS, previous
versions of hg always have size == 0 when state == 'r').
We save the state of 'm'erged and dirty files, because they're the
two states that indicate that a file has to be committed on a merge
to correctly record per-file history.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 18 Mar 2008 04:07:39 -0300 |
parents | de7256c82fad |
children | 874ca958025b |
line wrap: on
line source
#!/bin/sh hg init test cd test echo '[web]' > .hg/hgrc echo 'accesslog = access.log' >> .hg/hgrc echo % Without -v hg serve -a localhost -p $HGPORT -d --pid-file=hg.pid cat hg.pid >> "$DAEMON_PIDS" if [ -f access.log ]; then echo 'access log created - .hg/hgrc respected' fi echo % With -v hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v \ | sed -e 's/:[0-9][0-9]*//g' -e 's/localhost\.localdomain/localhost/' cat hg.pid >> "$DAEMON_PIDS" sleep 1 kill `cat hg.pid` sleep 1 echo % With --prefix foo hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo \ | sed -e 's/:[0-9][0-9]*//g' -e 's/localhost\.localdomain/localhost/' cat hg.pid >> "$DAEMON_PIDS" sleep 1 kill `cat hg.pid` sleep 1 echo % With --prefix /foo hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo \ | sed -e 's/:[0-9][0-9]*//g' -e 's/localhost\.localdomain/localhost/' cat hg.pid >> "$DAEMON_PIDS" sleep 1 kill `cat hg.pid` sleep 1 echo % With --prefix foo/ hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo/ \ | sed -e 's/:[0-9][0-9]*//g' -e 's/localhost\.localdomain/localhost/' cat hg.pid >> "$DAEMON_PIDS" sleep 1 kill `cat hg.pid` sleep 1 echo % With --prefix /foo/ hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo/ \ | sed -e 's/:[0-9][0-9]*//g' -e 's/localhost\.localdomain/localhost/' cat hg.pid >> "$DAEMON_PIDS"