Mercurial > evolve
changeset 1968:08cbfeb15a1a
compat: mercurial dropped alias for hashlib.sha1
author | timeless@gmail.com |
---|---|
date | Fri, 08 Jul 2016 16:09:55 +0000 |
parents | c5d4e856ad0e |
children | a604423c1500 |
files | hgext3rd/topic/topicmap.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/topicmap.py Wed May 11 16:22:52 2016 +0200 +++ b/hgext3rd/topic/topicmap.py Fri Jul 08 16:09:55 2016 +0000 @@ -1,4 +1,5 @@ import contextlib +import hashlib from mercurial.node import hex, bin, nullid from mercurial import ( @@ -34,7 +35,7 @@ key = nullid revs = sorted(revs) if revs: - s = util.sha1() + s = hashlib.sha1() for rev in revs: s.update('%s;' % rev) key = s.digest()