Mercurial > hg-stable
changeset 19606:284f91230c07
basefilectx: move p1 from filectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sun, 11 Aug 2013 22:59:10 -0500 |
parents | cf7322cb1c13 |
children | 056a949799ac |
files | mercurial/context.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Sun Aug 11 22:57:21 2013 -0500 +++ b/mercurial/context.py Sun Aug 11 22:59:10 2013 -0500 @@ -550,6 +550,9 @@ return [filectx(self._repo, p, fileid=n, filelog=l) for p, n, l in pl if n != nullid] + def p1(self): + return self.parents()[0] + class filectx(basefilectx): """A filecontext object makes access to data related to a particular filerevision convenient.""" @@ -635,9 +638,6 @@ pass return renamed - def p1(self): - return self.parents()[0] - def p2(self): p = self.parents() if len(p) == 2: