Patchwork [7,of,8] pvec: replace 'ctx._repo' with 'ctx.repo()'

login
register
mail settings
Submitter Matt Harbison
Date March 14, 2015, 1:28 a.m.
Message ID <5bed1bb23db9ce521f1d.1426296518@Envy>
Download mbox | patch
Permalink /patch/8087/
State Accepted
Commit bcc319d936a388914ef522ff380db6b536067e8a
Headers show

Comments

Matt Harbison - March 14, 2015, 1:28 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1426216700 14400
#      Thu Mar 12 23:18:20 2015 -0400
# Node ID 5bed1bb23db9ce521f1d0b950e6dc88d59b1029f
# Parent  e3c6e04cbb28b365e7590abad455f72e9d1b3a20
pvec: replace 'ctx._repo' with 'ctx.repo()'

Patch

diff --git a/mercurial/pvec.py b/mercurial/pvec.py
--- a/mercurial/pvec.py
+++ b/mercurial/pvec.py
@@ -142,7 +142,7 @@ 
 
 def ctxpvec(ctx):
     '''construct a pvec for ctx while filling in the cache'''
-    r = ctx._repo
+    r = ctx.repo()
     if not util.safehasattr(r, "_pveccache"):
         r._pveccache = {}
     pvc = r._pveccache