diff -r 5836edcbdc2e -r 7032dcff290c mercurial/patch.py --- 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)