##// END OF EJS Templates
pullreport: skip or rework some early return...
Boris Feld -
r39934:b5e12039 default
parent child Browse files
Show More
@@ -1620,13 +1620,13 def registersummarycallback(repo, otr, t
1620 def reportnewcs(repo, tr):
1620 def reportnewcs(repo, tr):
1621 """Report the range of new revisions pulled/unbundled."""
1621 """Report the range of new revisions pulled/unbundled."""
1622 origrepolen = tr.changes.get('origrepolen', len(repo))
1622 origrepolen = tr.changes.get('origrepolen', len(repo))
1623 if origrepolen >= len(repo):
1623 unfi = repo.unfiltered()
1624 if origrepolen >= len(unfi):
1624 return
1625 return
1625
1626
1626 # Compute the bounds of new visible revisions' range.
1627 # Compute the bounds of new visible revisions' range.
1627 revs = smartset.spanset(repo, start=origrepolen)
1628 revs = smartset.spanset(repo, start=origrepolen)
1628 if not revs:
1629 if revs:
1629 return
1630 minrev, maxrev = repo[revs.min()], repo[revs.max()]
1630 minrev, maxrev = repo[revs.min()], repo[revs.max()]
1631
1631
1632 if minrev == maxrev:
1632 if minrev == maxrev:
@@ -1647,7 +1647,8 def registersummarycallback(repo, otr, t
1647 msg = _('new changesets %s (%d secrets)\n')
1647 msg = _('new changesets %s (%d secrets)\n')
1648 msg %= (revrange, secret)
1648 msg %= (revrange, secret)
1649 else:
1649 else:
1650 raise error.ProgrammingError('entered unreachable condition')
1650 errormsg = 'entered unreachable condition'
1651 raise error.ProgrammingError(errormsg)
1651 repo.ui.status(msg)
1652 repo.ui.status(msg)
1652
1653
1653 @reportsummary
1654 @reportsummary
General Comments 0
You need to be logged in to leave comments. Login now