Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 40795:691c68bc1222
ui: pass in bytes opts dict to logger.log()
This is the convention of the Mercurial API.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 11 Nov 2018 19:36:21 +0900 |
parents | ffd574c144d2 |
children | ab92e2111408 |
comparison
equal
deleted
inserted
replaced
40794:ffd574c144d2 | 40795:691c68bc1222 |
---|---|
1740 activeloggers = [l for l in self._loggers.itervalues() | 1740 activeloggers = [l for l in self._loggers.itervalues() |
1741 if l.tracked(event)] | 1741 if l.tracked(event)] |
1742 if not activeloggers: | 1742 if not activeloggers: |
1743 return | 1743 return |
1744 msg = msgfmt % msgargs | 1744 msg = msgfmt % msgargs |
1745 opts = pycompat.byteskwargs(opts) | |
1745 # guard against recursion from e.g. ui.debug() | 1746 # guard against recursion from e.g. ui.debug() |
1746 registeredloggers = self._loggers | 1747 registeredloggers = self._loggers |
1747 self._loggers = {} | 1748 self._loggers = {} |
1748 try: | 1749 try: |
1749 for logger in activeloggers: | 1750 for logger in activeloggers: |