named branches: improve pre-push logic (issue736)
Each named branch is considered separately, and the push is allowed if
no new branch heads are created for any named branch to be pushed.
Due to some tests's use of --debug, their output will change after this
addition. This has been fixed as well.
Co-contributor: Henrik Stuart <henrik.stuart@edlund.dk>
% Without -v
access log created - .hg/hgrc respected
% errors
% With -v
listening at http://localhost/ (bound to 127.0.0.1)
% errors
% With --prefix foo
listening at http://localhost/foo/ (bound to 127.0.0.1)
% errors
% With --prefix /foo
listening at http://localhost/foo/ (bound to 127.0.0.1)
% errors
% With --prefix foo/
listening at http://localhost/foo/ (bound to 127.0.0.1)
% errors
% With --prefix /foo/
listening at http://localhost/foo/ (bound to 127.0.0.1)
% errors