Patchwork [1,of,9] subrepo: drop the '_ui' member in the subrepo subclasses

login
register
mail settings
Submitter Matt Harbison
Date Dec. 15, 2014, 1:12 a.m.
Message ID <80e3b20d537f390a9c39.1418605958@Envy>
Download mbox | patch
Permalink /patch/7102/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 15, 2014, 1:12 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1418501587 18000
#      Sat Dec 13 15:13:07 2014 -0500
# Node ID 80e3b20d537f390a9c39bcba5b4cfe035b386a14
# Parent  495bc1b65d25872324a0220354f048b220304bd1
subrepo: drop the '_ui' member in the subrepo subclasses

This member has existed in the base class since fcbc66b5da6a.

Patch

diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -901,7 +901,6 @@ 
         self._path = path
         self._state = state
         self._ctx = ctx
-        self._ui = ctx._repo.ui
         self._exe = util.findexe('svn')
         if not self._exe:
             raise util.Abort(_("'svn' executable not found for subrepo '%s'")
@@ -1135,7 +1134,6 @@ 
         self._relpath = os.path.join(reporelpath(ctx._repo), path)
         self._abspath = ctx._repo.wjoin(path)
         self._subparent = ctx._repo
-        self._ui = ctx._repo.ui
         self._ensuregit()
 
     def _ensuregit(self):