--- a/mercurial/ui.py Mon Apr 27 09:12:07 2009 +0200 +++ b/mercurial/ui.py Mon Apr 27 10:33:57 2009 +0200 @@ -35,7 +35,7 @@ for f in util.rcpath(): self.readconfig(f, trust=True) def copy(self): - return ui(self) + return self.__class__(self) def _is_trusted(self, fp, f): st = util.fstat(fp)