Fix python2.6 deprecation warnings related to hashlib.
* bzrlib/osutils.py:
Wrap md5 and sha imports to be compatible with python 2.4, 2.5 and
above. Replace all sha.new() calls by sha() calls they are
reputedly faster (not profiled).
* bzrlib/weave.py:
Update sha import, fix use.
* bzrlib/transport/http/_urllib2_wrappers.py:
Update md5 and sha imports, fix use.
* bzrlib/tests/test_testament.py:
Update sha import, fix use.
* bzrlib/tests/test_knit.py:
Update sha import, fix use.
* bzrlib/tests/test_hashcache.py:
Update sha import, fix use.
* bzrlib/tests/per_repository/test_check_reconcile.py:
Update sha import, fix use.
* bzrlib/tests/http_utils.py:
Update md5 and sha imports, fix use.
* bzrlib/testament.py:
Update sha import, fix use.
* bzrlib/repofmt/pack_repo.py:
Update md5 import, fix use.
* bzrlib/hashcache.py:
Update sha import, fix use.
* bzrlib/btree_index.py:
Delete useless sha import.