Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 21687:da67d855a8a2
memctx: remove parents since it is now inherited
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Thu, 15 Aug 2013 15:20:56 -0500 |
parents | 51df9879b7f9 |
children | cc677803bad4 |
comparison
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): |