comparison mercurial/hgweb/hgwebdir_mod.py @ 8190:9b8ac5fb7760

ui: kill most users of parentui name and arg, replace with .copy()
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:43 -0500
parents 6fc30fe7f3e7
children 35604226d712
comparison
equal deleted inserted replaced
8189:d2899a856f9f 8190:9b8ac5fb7760
201 for name, path in self.repos: 201 for name, path in self.repos:
202 if not name.startswith(subdir): 202 if not name.startswith(subdir):
203 continue 203 continue
204 name = name[len(subdir):] 204 name = name[len(subdir):]
205 205
206 u = ui.ui(parentui=self.parentui) 206 u = self.parentui.copy()
207 try: 207 try:
208 u.readconfig(os.path.join(path, '.hg', 'hgrc')) 208 u.readconfig(os.path.join(path, '.hg', 'hgrc'))
209 except Exception, e: 209 except Exception, e:
210 u.warn(_('error reading %s/.hg/hgrc: %s\n') % (path, e)) 210 u.warn(_('error reading %s/.hg/hgrc: %s\n') % (path, e))
211 continue 211 continue