Patchwork [05,of,36] context: move node from changectx

login
register
mail settings
Submitter Sean Farley
Date Aug. 7, 2013, 6:13 p.m.
Message ID <391d64e42c245cb24130.1375899185@laptop.local>
Download mbox | patch
Permalink /patch/2022/
State Superseded
Commit 67838e7dd5ec9deb387fd5f8a28f1fad82800fcc
Delegated to: Augie Fackler
Headers show

Comments

Sean Farley - Aug. 7, 2013, 6:13 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1375480099 18000
#      Fri Aug 02 16:48:19 2013 -0500
# Node ID 391d64e42c245cb24130f635d36be0f4b2835773
# Parent  b02915c5f63cce0ce07adb8612b335dbad66ed0f
context: move node from changectx

Patch

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."""
@@ -202,12 +204,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):