http basic auth: reset redirect counter on new requests (
issue2255)
On Python 2.6.6 (and patched 2.6.5 on certain Linux distros),
the change that caused
issue2255 was also applied to non-digest
authentication; this change extends the
2ec346160783 fix
accordingly.
#!/bin/sh
hg init a
echo a > a/a
hg --cwd a ci -Ama
hg clone a c
hg clone a b
echo b >> b/a
hg --cwd b ci -mb
echo % push should push to default when default-push not set
hg --cwd b push | sed 's/pushing to.*/pushing/'
echo % push should push to default-push when set
echo 'default-push = ../c' >> b/.hg/hgrc
hg --cwd b push | sed 's/pushing to.*/pushing/'