diff mercurial/patch.py @ 12144:be9c4131a8f4

clone, patch, convert: use hex(nullid) instead of '0'*40
author Martin Geisler <mg@lazybytes.net>
date Thu, 02 Sep 2010 12:08:13 +0200
parents fddacca3202e
children d2c5b0927c28
line wrap: on
line diff
--- a/mercurial/patch.py	Thu Sep 02 11:20:23 2010 +0200
+++ b/mercurial/patch.py	Thu Sep 02 12:08:13 2010 +0200
@@ -1352,7 +1352,7 @@
     '''print base85-encoded binary diff'''
     def gitindex(text):
         if not text:
-            return '0' * 40
+            return hex(nullid)
         l = len(text)
         s = util.sha1('blob %d\0' % l)
         s.update(text)