mercurial/ui.py
changeset 11984 2db0fccc8143
parent 11970 fca15617721c
child 12087 a88a4720c2f0
equal deleted inserted replaced
11983:27649cf258e3 11984:2db0fccc8143
   591             self.debug('%s:%s %s/%s%s (%4.2f%%)\n'
   591             self.debug('%s:%s %s/%s%s (%4.2f%%)\n'
   592                      % (topic, item, pos, total, unit, pct))
   592                      % (topic, item, pos, total, unit, pct))
   593         else:
   593         else:
   594             self.debug('%s:%s %s%s\n' % (topic, item, pos, unit))
   594             self.debug('%s:%s %s%s\n' % (topic, item, pos, unit))
   595 
   595 
       
   596     def log(self, service, message):
       
   597         '''hook for logging facility extensions
       
   598 
       
   599         service should be a readily-identifiable subsystem, which will
       
   600         allow filtering.
       
   601         message should be a newline-terminated string to log.
       
   602         '''
       
   603         pass
       
   604 
   596     def label(self, msg, label):
   605     def label(self, msg, label):
   597         '''style msg based on supplied label
   606         '''style msg based on supplied label
   598 
   607 
   599         Like ui.write(), this just returns msg unchanged, but extensions
   608         Like ui.write(), this just returns msg unchanged, but extensions
   600         and GUI tools can override it to allow styling output without
   609         and GUI tools can override it to allow styling output without