Mercurial > hg > mercurial-crew-with-dirclash
annotate tests/test-rawcommit1 @ 597:e530637ea060
[PATCH] use <arpa/inet.h> instead of <netinet/in.h> for ntohl/htonl
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[PATCH] use <arpa/inet.h> instead of <netinet/in.h> for ntohl/htonl
From: Jed Davis <jdev@panix.com>
This fixes the Mac OS X build problem; hopefully it won't break any
other OSes, especially since SUSv3 says arpa/inet is the right header.
( http://www.opengroup.org/onlinepubs/009695399/functions/ntohl.html )
manifest hash: 2f06ff0cffefdb35e794131afcd1f34f9fdfa5cf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCyEoFywK+sNU5EO8RAk6WAJ9v/pnr07zUXKM9EBQQGaKSZAlhxACdHrwS
XTLSL6pPGAwaRfExGF2A3DQ=
=Rtv9
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Sun, 03 Jul 2005 12:26:45 -0800 |
parents | eb46971fc57f |
children | 7e4843b7efd2 |
rev | line source |
---|---|
444 | 1 #!/bin/sh -x |
591 | 2 hg --debug init |
444 | 3 echo this is a1 > a |
591 | 4 hg add a |
5 hg commit -t0 -d "0 0" -u user | |
444 | 6 echo this is b1 > b |
591 | 7 hg add b |
8 hg commit -t1 -d "0 0" -u user | |
9 hg manifest 1 | |
444 | 10 echo this is c1 > c |
591 | 11 hg rawcommit -p 1 -d "0 0" -u user -t2 c |
12 hg manifest 2 | |
13 hg parents | |
444 | 14 rm b |
591 | 15 hg rawcommit -p 2 -d "0 0" -u user -t3 b |
16 hg manifest 3 | |
17 hg parents | |
444 | 18 echo this is a22 > a |
591 | 19 hg rawcommit -p 3 -d "0 0" -u user -t4 a |
20 hg manifest 4 | |
21 hg parents | |
444 | 22 echo this is c22 > c |
591 | 23 hg rawcommit -p 1 -d "0 0" -u user -t5 c |
24 hg manifest 5 | |
25 hg parents | |
444 | 26 # merge, but no files changed |
591 | 27 hg rawcommit -p 4 -p 5 -d "0 0" -u user -t6 |
28 hg manifest 6 | |
29 hg parents | |
444 | 30 # no changes what-so-ever |
591 | 31 hg rawcommit -p 6 -d "0 0" -u user -t7 |
32 hg manifest 7 | |
33 hg parents |