# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 2015-03-13 02:54:53
# Node ID a07314472a80da4bed99cf5a755c453c8917e37c
# Parent  68d998a76994415dfb42c0e0d2cfc826d167f7f9

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 @@ class basectx(object):
         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):