diff -r 4d513f96a565 -r c172660eee01 mercurial/patch.py --- 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)