Skip to content

Commit

Permalink
remote-hg: use hashlib instead of hg sha1 util
Browse files Browse the repository at this point in the history
To be in sync with remote-bzr.

Signed-off-by: Felipe Contreras <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
felipec authored and gitster committed Apr 26, 2013
1 parent aa93845 commit 6134caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import shutil
import subprocess
import urllib
import atexit
import urlparse
import urlparse, hashlib

#
# If you want to switch to hg-git compatibility mode:
Expand Down Expand Up @@ -933,7 +933,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

Expand Down

0 comments on commit 6134caf

Please sign in to comment.