# HG changeset patch # User Ronny Pfannschmidt # Date 1240821237 -7200 # Node ID 6e6ebeb528999174d12cd9b9f57d5ea2f6e07ecc # Parent 21cf74ff2deb70d501007fcad8b5d3d7bbfa7f1f ui: ui.copy() now takes the ui class into account Helps subclassing by other API users. diff -r 21cf74ff2deb -r 6e6ebeb52899 mercurial/ui.py --- 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)