mercurial/context.py
changeset 23588 87a76cff7147
parent 23587 8063901e56cd
child 23589 200215cdf7aa
equal deleted inserted replaced
23587:8063901e56cd 23588:87a76cff7147
  1644                 # removed file
  1644                 # removed file
  1645                 del man[f]
  1645                 del man[f]
  1646             else:
  1646             else:
  1647                 man[f] = revlog.hash(fctx.data(), p1node, p2node)
  1647                 man[f] = revlog.hash(fctx.data(), p1node, p2node)
  1648 
  1648 
       
  1649         for f in self._status.added:
       
  1650             man[f] = revlog.hash(self[f].data(), nullid, nullid)
       
  1651 
  1649         return man
  1652         return man
  1650 
  1653 
  1651     @propertycache
  1654     @propertycache
  1652     def _status(self):
  1655     def _status(self):
  1653         """Calculate exact status from ``files`` specified at construction
  1656         """Calculate exact status from ``files`` specified at construction