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

login
register
mail settings
Submitter Matt Harbison
Date March 14, 2015, 1:28 a.m.
Message ID <e3c6e04cbb28b365e759.1426296517@Envy>
Download mbox | patch
Permalink /patch/8086/
State Accepted
Commit ca1365078c8655528a9104e8c4112019b18eb870
Headers show

Comments

Matt Harbison - March 14, 2015, 1:28 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1426216586 14400
#      Thu Mar 12 23:16:26 2015 -0400
# Node ID e3c6e04cbb28b365e7590abad455f72e9d1b3a20
# Parent  6a973813de33a45db7ac7b762c2d53b7a71ad218
scmutil: replace 'ctx._repo' with 'ctx.repo()'

Patch

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -723,7 +723,7 @@ 
     m = ctx.match(pats, opts.get('include'), opts.get('exclude'),
                          default)
     def badfn(f, msg):
-        ctx._repo.ui.warn("%s: %s\n" % (m.rel(f), msg))
+        ctx.repo().ui.warn("%s: %s\n" % (m.rel(f), msg))
     m.bad = badfn
     return m, pats