Show More
@@ -1522,9 +1522,9 b' def registersummarycallback(repo, otr, t' | |||
|
1522 | 1522 | for instability, revset in instabilitytypes: |
|
1523 | 1523 | delta = (newinstabilitycounts[instability] - |
|
1524 | 1524 | oldinstabilitycounts[instability]) |
|
1525 | if delta > 0: | |
|
1526 | repo.ui.warn(_('%i new %s changesets\n') % | |
|
1527 | (delta, instability)) | |
|
1525 | msg = getinstabilitymessage(delta, instability) | |
|
1526 | if msg: | |
|
1527 | repo.ui.warn(msg) | |
|
1528 | 1528 | |
|
1529 | 1529 | if txmatch(_reportnewcssource): |
|
1530 | 1530 | @reportsummary |
@@ -1566,6 +1566,14 b' def registersummarycallback(repo, otr, t' | |||
|
1566 | 1566 | repo.ui.status(_('%d local changesets published\n') |
|
1567 | 1567 | % len(published)) |
|
1568 | 1568 | |
|
1569 | def getinstabilitymessage(delta, instability): | |
|
1570 | """function to return the message to show warning about new instabilities | |
|
1571 | ||
|
1572 | exists as a separate function so that extension can wrap to show more | |
|
1573 | information like how to fix instabilities""" | |
|
1574 | if delta > 0: | |
|
1575 | return _('%i new %s changesets\n') % (delta, instability) | |
|
1576 | ||
|
1569 | 1577 | def nodesummaries(repo, nodes, maxnumnodes=4): |
|
1570 | 1578 | if len(nodes) <= maxnumnodes or repo.ui.verbose: |
|
1571 | 1579 | return ' '.join(short(h) for h in nodes) |
General Comments 0
You need to be logged in to leave comments.
Login now