# HG changeset patch # User Ronny Pfannschmidt # Date 2009-04-27 08:33:57 # Node ID 6e6ebeb528999174d12cd9b9f57d5ea2f6e07ecc # Parent 21cf74ff2deb70d501007fcad8b5d3d7bbfa7f1f ui: ui.copy() now takes the ui class into account Helps subclassing by other API users. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -35,7 +35,7 @@ class ui(object): 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)