Mercurial > hg > mercurial-crew-with-dirclash
view tests/test-hup @ 4378:e89f9afc462b
Refactor commands.serve to allow other commands to run as services.
This introduces a new function, cmdutil.service.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 27 Apr 2007 21:30:55 -0700 |
parents | a413f5c29c46 |
children |
line wrap: on
line source
#!/bin/sh hg init mkfifo p hg serve --stdio < p & P=$! (echo lock; echo addchangegroup; sleep 5) > p & Q=$! sleep 3 kill -HUP $P wait echo .hg/* .hg/store/*