mercurial/context.py
branchstable
changeset 42156 14589f1989e9
parent 42142 5382d8f8530b
child 42315 cdcebc897529
--- a/mercurial/context.py	Wed Apr 24 19:28:46 2019 +0300
+++ b/mercurial/context.py	Wed Apr 24 19:42:43 2019 +0300
@@ -1824,7 +1824,7 @@
     def data(self, path):
         if self.isdirty(path):
             if self._cache[path]['exists']:
-                if self._cache[path]['data']:
+                if self._cache[path]['data'] is not None:
                     return self._cache[path]['data']
                 else:
                     # Must fallback here, too, because we only set flags.