mercurial/context.py
changeset 21687 da67d855a8a2
parent 21686 51df9879b7f9
child 21688 cc677803bad4
equal deleted inserted replaced
21686:51df9879b7f9 21687:da67d855a8a2
  1576 
  1576 
  1577         if editor:
  1577         if editor:
  1578             self._text = editor(self._repo, self, [])
  1578             self._text = editor(self._repo, self, [])
  1579             self._repo.savecommitmessage(self._text)
  1579             self._repo.savecommitmessage(self._text)
  1580 
  1580 
  1581     def parents(self):
       
  1582         """return contexts for each parent changeset"""
       
  1583         return self._parents
       
  1584 
       
  1585     def filectx(self, path, filelog=None):
  1581     def filectx(self, path, filelog=None):
  1586         """get a file context from the working directory"""
  1582         """get a file context from the working directory"""
  1587         return self._filectxfn(self._repo, self, path)
  1583         return self._filectxfn(self._repo, self, path)
  1588 
  1584 
  1589     def commit(self):
  1585     def commit(self):