mercurial/context.py
changeset 22313 d226fe36e362
parent 22296 650b5b6e75ed
child 22389 94f77624dbb5
equal deleted inserted replaced
22312:8b980fbbd6dc 22313:d226fe36e362
  1591     user receives the committer name and defaults to current
  1591     user receives the committer name and defaults to current
  1592     repository username, date is the commit date in any format
  1592     repository username, date is the commit date in any format
  1593     supported by util.parsedate() and defaults to current date, extra
  1593     supported by util.parsedate() and defaults to current date, extra
  1594     is a dictionary of metadata or is left empty.
  1594     is a dictionary of metadata or is left empty.
  1595     """
  1595     """
       
  1596 
       
  1597     # Mercurial <= 3.1 expects the filectxfn to raise IOError for missing files.
       
  1598     # Extensions that need to retain compatibility across Mercurial 3.1 can use
       
  1599     # this field to determine what to do in filectxfn.
       
  1600     _returnnoneformissingfiles = True
       
  1601 
  1596     def __init__(self, repo, parents, text, files, filectxfn, user=None,
  1602     def __init__(self, repo, parents, text, files, filectxfn, user=None,
  1597                  date=None, extra=None, editor=False):
  1603                  date=None, extra=None, editor=False):
  1598         super(memctx, self).__init__(repo, text, user, date, extra)
  1604         super(memctx, self).__init__(repo, text, user, date, extra)
  1599         self._rev = None
  1605         self._rev = None
  1600         self._node = None
  1606         self._node = None