Patchwork [5,of,7] obsutil: use public interface to access to repo.ui

login
register
mail settings
Submitter Yuya Nishihara
Date July 6, 2018, 1:03 p.m.
Message ID <4ee2c39c085c9175efea.1530882230@mimosa>
Download mbox | patch
Permalink /patch/32667/
State New
Headers show

Comments

Yuya Nishihara - July 6, 2018, 1:03 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1530880713 -32400
#      Fri Jul 06 21:38:33 2018 +0900
# Node ID 4ee2c39c085c9175efead3a9197b533dfe890bcb
# Parent  71f6aea244c46ba63b404ffe2d9c651da7d7e6a1
obsutil: use public interface to access to repo.ui

Patch

diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py
--- a/mercurial/obsutil.py
+++ b/mercurial/obsutil.py
@@ -395,7 +395,7 @@  def _cmpdiff(leftctx, rightctx):
 
     This is a first and basic implementation, with many shortcoming.
     """
-    diffopts = diffutil.diffopts(leftctx._repo.ui, {'git': True})
+    diffopts = diffutil.diffopts(leftctx.repo().ui, {'git': True})
     # Leftctx or right ctx might be filtered, so we need to use the contexts
     # with an unfiltered repository to safely compute the diff
     leftunfi = leftctx._repo.unfiltered()[leftctx.rev()]