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

Matt Harbison mharbison72 at gmail.com
Mon Dec 15 01:12:38 UTC 2014


# HG changeset patch
# User Matt Harbison <matt_harbison at 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.

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):


More information about the Mercurial-devel mailing list