Show More
@@ -1242,20 +1242,11 b' def registersummarycallback(repo, otr, t' | |||||
1242 |
|
1242 | |||
1243 | # Compute the bounds of new revisions' range, excluding obsoletes. |
|
1243 | # Compute the bounds of new revisions' range, excluding obsoletes. | |
1244 | unfi = repo.unfiltered() |
|
1244 | unfi = repo.unfiltered() | |
1245 | minrev, maxrev = None, None |
|
1245 | revs = unfi.revs('%ld and not obsolete()', newrevs) | |
1246 |
|
|
1246 | if not revs: | |
1247 | for r in newrevs: |
|
|||
1248 | if not unfi[r].obsolete(): |
|
|||
1249 | minrev = repo[r] |
|
|||
1250 | break |
|
|||
1251 | for r in reversed(newrevs): |
|
|||
1252 | if not unfi[r].obsolete(): |
|
|||
1253 | maxrev = repo[r] |
|
|||
1254 | break |
|
|||
1255 |
|
||||
1256 | if minrev is None or maxrev is None: |
|
|||
1257 | # Got only obsoletes. |
|
1247 | # Got only obsoletes. | |
1258 | return |
|
1248 | return | |
|
1249 | minrev, maxrev = repo[revs.min()], repo[revs.max()] | |||
1259 |
|
1250 | |||
1260 | if minrev == maxrev: |
|
1251 | if minrev == maxrev: | |
1261 | revrange = minrev |
|
1252 | revrange = minrev |
General Comments 0
You need to be logged in to leave comments.
Login now