diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2011-10-01 20:49:36 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-27 13:27:51 +0000 |
commit | 921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch) | |
tree | 3c4a89176ea67fe4c7bf7b375488361a823c95fa /tests/test-pull-http.t | |
parent | 9039c805b0a7e36220101323f82735f08a104b37 (diff) | |
download | mercurial-tarball-master.tar.gz |
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
Diffstat (limited to 'tests/test-pull-http.t')
-rw-r--r-- | tests/test-pull-http.t | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/tests/test-pull-http.t b/tests/test-pull-http.t index 7c53682..3c42ae4 100644 --- a/tests/test-pull-http.t +++ b/tests/test-pull-http.t @@ -1,4 +1,3 @@ - $ "$TESTDIR/hghave" serve || exit 80 $ hg init test $ cd test @@ -13,30 +12,13 @@ $ echo a >> a $ hg ci -mb -Cloning with a password in the URL should not save the password in .hg/hgrc: - - $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log - $ cat hg.pid >> $DAEMON_PIDS - $ hg clone http://foo:xyzzy@localhost:$HGPORT/ test3 - requesting all changes - adding changesets - adding manifests - adding file changes - added 2 changesets with 2 changes to 1 files - updating to branch default - 1 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ cat test3/.hg/hgrc - [paths] - default = http://foo@localhost:$HGPORT/ - $ "$TESTDIR/killdaemons.py" - expect error, cloning not allowed $ echo '[web]' > .hg/hgrc $ echo 'allowpull = false' >> .hg/hgrc $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log $ cat hg.pid >> $DAEMON_PIDS - $ hg clone http://localhost:$HGPORT/ test4 + $ hg clone http://localhost:$HGPORT/ test3 requesting all changes abort: authorization failed [255] @@ -61,5 +43,3 @@ expect error, pulling not allowed searching for changes abort: authorization failed % serve errors - - $ cd .. |