mercurial/hg.py
changeset 35582 72b91f905065
parent 35565 bdae51a83dfb
child 35619 c751b9fdbc40
--- a/mercurial/hg.py	Fri Dec 29 05:22:06 2017 +0530
+++ b/mercurial/hg.py	Fri Dec 29 05:25:27 2017 +0530
@@ -569,7 +569,7 @@
                             'unable to resolve identity of remote)\n'))
         elif sharenamemode == 'remote':
             sharepath = os.path.join(
-                sharepool, hashlib.sha1(source).hexdigest())
+                sharepool, node.hex(hashlib.sha1(source).digest()))
         else:
             raise error.Abort(_('unknown share naming mode: %s') %
                               sharenamemode)