Mercurial > hg
changeset 10299:e768941f14c1
subrepo: fix errors reported by pylint
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 31 Jan 2010 18:02:16 +0100 |
parents | e7727a545c48 |
children | c437745f50ec |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepo.py Thu Jan 28 23:13:45 2010 -0600 +++ b/mercurial/subrepo.py Sun Jan 31 18:02:16 2010 +0100 @@ -5,7 +5,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import errno, os, re, xml.dom.minidom +import errno, os, re, xml.dom.minidom, shutil from i18n import _ import config, util, node, error hg = None @@ -153,7 +153,7 @@ util.path_auditor(ctx._repo.root)(path) state = ctx.substate.get(path, nullstate) if state[2] not in types: - raise util.Abort(_('unknown subrepo type %s') % t) + raise util.Abort(_('unknown subrepo type %s') % state[2]) return types[state[2]](ctx, path, state[:2]) # subrepo classes need to implement the following methods: @@ -332,10 +332,10 @@ def remove(self): if self.dirty(): - self._repo.ui.warn(_('not removing repo %s because ' - 'it has changes.\n' % self._path)) + self._ui.warn(_('not removing repo %s because ' + 'it has changes.\n' % self._path)) return - self._repo.ui.note('removing subrepo %s\n' % self._path) + self._ui.note('removing subrepo %s\n' % self._path) shutil.rmtree(self._ctx.repo.join(self._path)) def get(self, state):