diff options
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 .. |