Comments
Patch
@@ -38,6 +38,7 @@ from . import (
pycompat,
revsetlang,
similar,
+ smartset,
url,
util,
vfs,
@@ -1605,11 +1606,9 @@ def registersummarycallback(repo, otr, t
if origrepolen >= len(repo):
return
- # Compute the bounds of new revisions' range, excluding obsoletes.
- unfi = repo.unfiltered()
- revs = unfi.revs('%d: and not obsolete()', origrepolen)
+ # Compute the bounds of new visible revisions' range.
+ revs = smartset.spanset(repo, start=origrepolen)
if not revs:
- # Got only obsoletes.
return
minrev, maxrev = repo[revs.min()], repo[revs.max()]
@@ -537,5 +537,5 @@ Actual test
added 2 changesets with 0 changes to 0 files
1 new obsolescence markers
1 new orphan changesets
- new changesets 95d586532b49 (1 drafts)
+ new changesets 66f7d451a68b:95d586532b49 (2 drafts)
(run 'hg update' to get a working copy)