From patchwork Wed Aug 7 23:51:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06,of,35,V2] context: move node from changectx From: Sean Farley X-Patchwork-Id: 2059 Message-Id: <54235afc4c8e34350303.1375919480@laptop.local> To: mercurial-devel@selenic.com Date: Wed, 07 Aug 2013 18:51:20 -0500 # HG changeset patch # User Sean Farley # Date 1375480099 18000 # Fri Aug 02 16:48:19 2013 -0500 # Node ID 54235afc4c8e3435030310429d4ba38fcc7c66f1 # Parent bb97c9fd71656aa8eac27fba7bd7651c4b61cc5b context: move node from changectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -38,10 +38,12 @@ def __str__(self): return short(self.node()) def rev(self): return self._rev + def node(self): + return self._node class changectx(context): """A changecontext object makes access to data related to a particular changeset convenient. It represents a read-only context already presnt in the repo.""" @@ -208,12 +210,10 @@ def manifest(self): return self._manifest def manifestnode(self): return self._changeset[0] - def node(self): - return self._node def hex(self): return hex(self._node) def user(self): return self._changeset[1] def date(self):