Mercurial > hg-stable
changeset 16337:41b41adba08a
merge stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 01 Apr 2012 15:34:22 -0500 |
parents | cef9b0ac4601 (current diff) 0d8df15b59d6 (diff) |
children | 118eb4575ea2 |
files | tests/test-mq.t |
diffstat | 4 files changed, 19 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsigs Sun Apr 01 14:01:10 2012 -0500 +++ b/.hgsigs Sun Apr 01 15:34:22 2012 -0500 @@ -50,3 +50,4 @@ db33555eafeaf9df1e18950e29439eaa706d399b 0 iD8DBQBPGdzxywK+sNU5EO8RAppkAJ9jOXhUVE/97CPgiMA0pMGiIYnesQCfengAszcBiSiKGugiI8Okc9ghU+Y= 2aa5b51f310fb3befd26bed99c02267f5c12c734 0 iD8DBQBPKZ9bywK+sNU5EO8RAt1TAJ45r1eJ0YqSkInzrrayg4TVCh0SnQCgm0GA/Ua74jnnDwVQ60lAwROuz1Q= 53e2cd303ecf8ca7c7eeebd785c34e5ed6b0f4a4 0 iD8DBQBPT/fvywK+sNU5EO8RAnfYAKCn7d0vwqIb100YfWm1F7nFD5B+FACeM02YHpQLSNsztrBCObtqcnfod7Q= +b9bd95e61b49c221c4cca24e6da7c946fc02f992 0 iD8DBQBPeLsIywK+sNU5EO8RAvpNAKCtKe2gitz8dYn52IRF0hFOPCR7AQCfRJL/RWCFweu2T1vH/mUOCf8SXXc=
--- a/.hgtags Sun Apr 01 14:01:10 2012 -0500 +++ b/.hgtags Sun Apr 01 15:34:22 2012 -0500 @@ -62,3 +62,4 @@ db33555eafeaf9df1e18950e29439eaa706d399b 2.1-rc 2aa5b51f310fb3befd26bed99c02267f5c12c734 2.1 53e2cd303ecf8ca7c7eeebd785c34e5ed6b0f4a4 2.1.1 +b9bd95e61b49c221c4cca24e6da7c946fc02f992 2.1.2
--- a/tests/test-bad-pull.t Sun Apr 01 14:01:10 2012 -0500 +++ b/tests/test-bad-pull.t Sun Apr 01 15:34:22 2012 -0500 @@ -13,12 +13,18 @@ > handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): > server_address = ('localhost', int(os.environ['HGPORT'])) > httpd = server_class(server_address, handler_class) - > os.system("hg clone http://localhost:$HGPORT/foo copy2&") + > open("listening", "w") > httpd.handle_request() > run() > EOF - $ python dumb.py + $ python dumb.py 2> log & + $ P=$! + $ while [ ! -f listening ]; do true; done + $ hg clone http://localhost:$HGPORT/foo copy2 + abort: HTTP Error 404: * (glob) + [255] + $ wait $P + $ cat log localhost - - [*] code 404, message File not found (glob) localhost - - [*] "GET /foo?cmd=capabilities HTTP/1.1" 404 - (glob) - abort: HTTP Error 404: * (glob)
--- a/tests/test-mq.t Sun Apr 01 14:01:10 2012 -0500 +++ b/tests/test-mq.t Sun Apr 01 15:34:22 2012 -0500 @@ -519,7 +519,10 @@ $ hg qpush --move test.patch # already applied abort: cannot push to a previous patch: test.patch [255] - $ sed -i.bak '2i\# make qtip index different in series and fullseries' `hg root`/.hg/patches/series + $ sed '2i\ + > # make qtip index different in series and fullseries + > ' `hg root`/.hg/patches/series > $TESTTMP/sedtmp + $ cp $TESTTMP/sedtmp `hg root`/.hg/patches/series $ cat `hg root`/.hg/patches/series # comment # make qtip index different in series and fullseries @@ -1496,12 +1499,14 @@ (restore env for next test) - $ sed -i.bak -e 's/new-commit=secret//' $HGRCPATH + $ sed -e 's/new-commit=secret//' $HGRCPATH > $TESTTMP/sedtmp + $ cp $TESTTMP/sedtmp $HGRCPATH $ hg qimport -r 1 --name add-file2 Test that qfinish preserve phase when mq.secret=false - $ sed -i.bak -e 's/secret=true/secret=false/' $HGRCPATH + $ sed -e 's/secret=true/secret=false/' $HGRCPATH > $TESTTMP/sedtmp + $ cp $TESTTMP/sedtmp $HGRCPATH $ hg qfinish qbase patch add-file2 finalized without changeset message $ hg phase 'all()'