mercurial/patch.py
changeset 19876 7032dcff290c
parent 19810 c80feeb715d1
parent 19875 c172660eee01
child 19973 1184edaead7a
--- a/mercurial/patch.py	Thu Oct 03 19:41:25 2013 +0200
+++ b/mercurial/patch.py	Mon Oct 07 17:47:55 2013 -0400
@@ -14,7 +14,7 @@
 import email.Parser
 
 from i18n import _
-from node import hex, nullid, short
+from node import hex, short
 import base85, mdiff, scmutil, util, diffhelpers, copies, encoding, error
 import context
 
@@ -1662,7 +1662,7 @@
 
     def gitindex(text):
         if not text:
-            return hex(nullid)
+            text = ""
         l = len(text)
         s = util.sha1('blob %d\0' % l)
         s.update(text)