Mercurial > hg
changeset 19541:421d49f2f8e2
basectx: move rev from changectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Fri, 02 Aug 2013 19:09:06 -0500 |
parents | 7b864da00e21 |
children | bd95621a2d56 |
files | mercurial/context.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Fri Aug 02 16:46:23 2013 -0500 +++ b/mercurial/context.py Fri Aug 02 19:09:06 2013 -0500 @@ -38,6 +38,9 @@ def __str__(self): return short(self.node()) + def rev(self): + return self._rev + class changectx(basectx): """A changecontext object makes access to data related to a particular changeset convenient. It represents a read-only context already presnt in @@ -207,8 +210,6 @@ def manifestnode(self): return self._changeset[0] - def rev(self): - return self._rev def node(self): return self._node def hex(self):