Mercurial > hg > mercurial-crew-with-dirclash
annotate tests/test-rawcommit1 @ 508:42a660abaf75
[PATCH] Harden os.system
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[PATCH] Harden os.system
From: Bryan O'Sullivan <bos@serpentine.com>
Add util.system function. This is similar to os.system, but will
either succeed (if the process finishes with a zero exit code) or raise
a util.CommandError (if the process exits uncleanly or is killed by
a signal).
Add util.explain_exit function. This tends to be ubiquitous in code
that calls other processes, and must describe what has gone wrong.
Change some uses of os.system over to util.system.
manifest hash: e3bf4adcac5b915432ec0af00efdbcef86bea4b1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCwSipywK+sNU5EO8RAr0RAJkBDt8XQ7mYQAWNHNgTOVt1eyWU1QCfe1oO
2OwxyWqpbRNACVJHHfZ3/Xw=
=OaRX
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Tue, 28 Jun 2005 02:38:33 -0800 |
parents | 2cdcb4beecb2 |
children | eb46971fc57f |
rev | line source |
---|---|
444 | 1 #!/bin/sh -x |
2 hg -d init | |
3 echo this is a1 > a | |
4 hg -d add a | |
5 hg -d commit -t0 -d "0 0" -u user | |
6 echo this is b1 > b | |
7 hg -d add b | |
8 hg -d commit -t1 -d "0 0" -u user | |
9 hg -d manifest 1 | |
10 echo this is c1 > c | |
11 hg -d rawcommit -p 1 -d "0 0" -u user -t2 c | |
12 hg -d manifest 2 | |
13 hg -d parents | |
14 rm b | |
15 hg -d rawcommit -p 2 -d "0 0" -u user -t3 b | |
16 hg -d manifest 3 | |
17 hg -d parents | |
18 echo this is a22 > a | |
19 hg -d rawcommit -p 3 -d "0 0" -u user -t4 a | |
20 hg -d manifest 4 | |
21 hg -d parents | |
22 echo this is c22 > c | |
23 hg -d rawcommit -p 1 -d "0 0" -u user -t5 c | |
24 hg -d manifest 5 | |
25 hg -d parents | |
26 # merge, but no files changed | |
27 hg -d rawcommit -p 4 -p 5 -d "0 0" -u user -t6 | |
28 hg -d manifest 6 | |
29 hg -d parents | |
30 # no changes what-so-ever | |
31 hg -d rawcommit -p 6 -d "0 0" -u user -t7 | |
32 hg -d manifest 7 | |
33 hg -d parents |