diff --git a/hgext/color.py b/hgext/color.py --- a/hgext/color.py +++ b/hgext/color.py @@ -419,9 +419,9 @@ def configstyles(ui): _styles[status] = ' '.join(good) class colorui(uimod.ui): - def popbuffer(self, labeled=False): + def popbuffer(self): if self._colormode is None: - return super(colorui, self).popbuffer(labeled) + return super(colorui, self).popbuffer() self._bufferstates.pop() return ''.join(self._buffers.pop()) diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1188,7 +1188,7 @@ class changeset_printer(object): if self.buffered: self.ui.pushbuffer(labeled=True) self._show(ctx, copies, matchfn, props) - self.hunk[ctx.rev()] = self.ui.popbuffer(labeled=True) + self.hunk[ctx.rev()] = self.ui.popbuffer() else: self._show(ctx, copies, matchfn, props) diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -594,16 +594,8 @@ class ui(object): self._bufferstates.append((error, subproc, labeled)) self._bufferapplylabels = labeled - def popbuffer(self, labeled=False): - '''pop the last buffer and return the buffered output - - If labeled is True, any labels associated with buffered - output will be handled. By default, this has no effect - on the output returned, but extensions and GUI tools may - handle this argument and returned styled output. If output - is being buffered so it can be captured and parsed or - processed, labeled should not be set to True. - ''' + def popbuffer(self): + '''pop the last buffer and return the buffered output''' self._bufferstates.pop() if self._bufferstates: self._bufferapplylabels = self._bufferstates[-1][2]