mercurial/ui.py
changeset 35127 fa2395db68c6
parent 35067 929858db4d22
child 35186 aef2b98d9352
equal deleted inserted replaced
35126:a9cc233de513 35127:fa2395db68c6
  1601 
  1601 
  1602         Use 'stacklevel' to report the offender some layers further up in the
  1602         Use 'stacklevel' to report the offender some layers further up in the
  1603         stack.
  1603         stack.
  1604         """
  1604         """
  1605         if not self.configbool('devel', 'all-warnings'):
  1605         if not self.configbool('devel', 'all-warnings'):
  1606             if config is not None and not self.configbool('devel', config):
  1606             if config is None or not self.configbool('devel', config):
  1607                 return
  1607                 return
  1608         msg = 'devel-warn: ' + msg
  1608         msg = 'devel-warn: ' + msg
  1609         stacklevel += 1 # get in develwarn
  1609         stacklevel += 1 # get in develwarn
  1610         if self.tracebackflag:
  1610         if self.tracebackflag:
  1611             util.debugstacktrace(msg, stacklevel, self.ferr, self.fout)
  1611             util.debugstacktrace(msg, stacklevel, self.ferr, self.fout)