1594 self.debug('%s:%s %d/%d%s (%4.2f%%)\n' |
1594 self.debug('%s:%s %d/%d%s (%4.2f%%)\n' |
1595 % (topic, item, pos, total, unit, pct)) |
1595 % (topic, item, pos, total, unit, pct)) |
1596 else: |
1596 else: |
1597 self.debug('%s:%s %d%s\n' % (topic, item, pos, unit)) |
1597 self.debug('%s:%s %d%s\n' % (topic, item, pos, unit)) |
1598 |
1598 |
|
1599 def makeprogress(self, topic, unit="", total=None): |
|
1600 '''exists only so low-level modules won't need to import scmutil''' |
|
1601 return scmutil.progress(self, topic, unit, total) |
|
1602 |
1599 def log(self, service, *msg, **opts): |
1603 def log(self, service, *msg, **opts): |
1600 '''hook for logging facility extensions |
1604 '''hook for logging facility extensions |
1601 |
1605 |
1602 service should be a readily-identifiable subsystem, which will |
1606 service should be a readily-identifiable subsystem, which will |
1603 allow filtering. |
1607 allow filtering. |