tests/test-hup
author Matt Mackall <mpm@selenic.com>
Wed, 06 Jul 2005 22:37:06 -0800
changeset 647 732ca4b56b7f
parent 642 5d6177b72fcc
child 800 ec85f9e6f3b1
child 808 8f5637f0a0c0
child 814 0902ffece4b4
permissions -rwxr-xr-x
update test-hup permissions -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 update test-hup permissions manifest hash: a041df3958fb7508e34ce7c736c196217bbcf8a7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCzM2SywK+sNU5EO8RAnKvAKC1+ilD53KpBwplk5iaUMra4h3GDgCgsM4f R+RswPBjW8I51vNyvZ45AvM= =dQjV -----END PGP SIGNATURE-----
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
642
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     1
#!/bin/sh
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     2
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     3
hg init
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     4
mkfifo p
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     5
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     6
hg serve --stdio < p &
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     7
P=$!
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     8
(echo lock; echo addchangegroup; sleep 5) > p &
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     9
Q=$!
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    10
sleep 1
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    11
kill -HUP $P
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    12
sleep 1
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    13
ls .hg
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    14
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    15
5d6177b72fcc Update tests
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    16