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 |