From: Felipe Contreras Date: Thu, 25 Apr 2013 11:20:45 GMT Subject: [PATCH 5/9] remote-hg: use hashlib instead of hg sha1 util Message-ID: <1366888849-19607-6-git-send-email-felipe.contreras@gmail.com> In-Reply-To: <1366888849-19607-1-git-send-email-felipe.contreras@gmail.com> To be in sync with remote-bzr. Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 0b7c81f..99abda4 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -22,6 +22,7 @@ import shutil import subprocess import urllib import atexit +import hashlib # # If you want to switch to hg-git compatibility mode: @@ -830,7 +831,7 @@ def main(args): if alias[4:] == url: is_tmp = True - alias = util.sha1(alias).hexdigest() + alias = hashlib.sha1(alias).hexdigest() else: is_tmp = False -- 1.8.2.1