remote-bzr: add support for shared repo
[gitweb.git] / contrib / remote-helpers / git-remote-hg
index 80b36067374226447c1bdcb96273fd7ec67b4d31..06920f28f210318bb790db217ac231fcc6ae26d8 100755 (executable)
@@ -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:
@@ -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