rebase: do not try to reactivate deleted divergent bookmark

If the currently active bookmark is divergent one, it may be resolved during
rebase.  Trying to activate it will raise "KeyError: 'W@diverge'".

--HG--
branch : stable
hgweb: make sure sys module is loaded prior to reload hack

If sys is still a demandmod, reload(sys) fails with "TypeError: reload()
argument must be module".

--HG--
branch : stable
verify: do not prevent verify repository containing hidden changesets

Since a959f7167077, repo.cancopy() cannot be used to check if the repo is
a bundlerepository.

repo.url() should always have "scheme:", so it isn't necessary to parse
by util.url().

--HG--
branch : stable