From patchwork Wed Aug 7 18:13:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06,of,36] context: move hex from changectx From: Sean Farley X-Patchwork-Id: 2023 Message-Id: <499a421b6679441120ce.1375899186@laptop.local> To: mercurial-devel@selenic.com Date: Wed, 07 Aug 2013 13:13:06 -0500 # HG changeset patch # User Sean Farley # Date 1375480141 18000 # Fri Aug 02 16:49:01 2013 -0500 # Node ID 499a421b6679441120ceba566342115e9ae0b633 # Parent 391d64e42c245cb24130f635d36be0f4b2835773 context: move hex from changectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -40,10 +40,12 @@ def rev(self): return self._rev def node(self): return self._node + def hex(self): + return hex(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.""" @@ -204,12 +206,10 @@ def manifest(self): return self._manifest def manifestnode(self): return self._changeset[0] - def hex(self): - return hex(self._node) def user(self): return self._changeset[1] def date(self): return self._changeset[2] def files(self):