mercurial/patch.py
branchstable
changeset 19875 c172660eee01
parent 19513 9e8298a324ac
child 19876 7032dcff290c
--- a/mercurial/patch.py	Tue Oct 01 16:55:20 2013 -0700
+++ b/mercurial/patch.py	Mon Oct 07 17:47:19 2013 -0400
@@ -10,7 +10,7 @@
 import tempfile, zlib, shutil
 
 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
 
@@ -1658,7 +1658,7 @@
 
     def gitindex(text):
         if not text:
-            return hex(nullid)
+            text = ""
         l = len(text)
         s = util.sha1('blob %d\0' % l)
         s.update(text)