[PATCH 1 of 3] context: add a repo accessor
Matt Harbison
mharbison72 at gmail.com
Fri Mar 13 04:03:08 UTC 2015
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1426215293 14400
# Thu Mar 12 22:54:53 2015 -0400
# Node ID 217a5fae7fbda2549569c27639420c5266677725
# Parent b7add2ebef9e41b91a1cd16a0cf149f517527cf0
context: add a repo accessor
There are 29 instances of 'ctx._repo' in the code, so make the ability to access
more official.
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -152,6 +152,8 @@
return hex(self.node())
def manifest(self):
return self._manifest
+ def repo(self):
+ return self._repo
def phasestr(self):
return phases.phasenames[self.phase()]
def mutable(self):
More information about the Mercurial-devel
mailing list