view tests/test-push-http.out @ 10716:5f92bde72eef

check-code: Only call check-code if __name__ = "__main__". This changeset moves the code that actually executes something to the "if __name__ = '__main__'" section to allow the file to be imported as a module.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 16 Mar 2010 19:52:56 +0100
parents 2e1a9b811d13
children f0bfe42c7b1f
line wrap: on
line source

adding a
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
% expect ssl error
pushing to http://localhost:$HGPORT/
searching for changes
remote: ssl required
% serve errors
% expect authorization error
abort: authorization failed
pushing to http://localhost:$HGPORT/
searching for changes
% serve errors
% expect authorization error: must have authorized user
abort: authorization failed
pushing to http://localhost:$HGPORT/
searching for changes
% serve errors
% expect success
pushing to http://localhost:$HGPORT/
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
% serve errors
changegroup hook: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_URL=remote:http 
rolling back last transaction
% expect authorization error: all users denied
abort: authorization failed
pushing to http://localhost:$HGPORT/
searching for changes
% serve errors
% expect authorization error: some users denied, users must be authenticated
abort: authorization failed
pushing to http://localhost:$HGPORT/
searching for changes
% serve errors