##// END OF EJS Templates
pullreport: skip filtered revs instead of obsolete ones...
Boris Feld -
r39933:a477679f default
parent child Browse files
Show More
@@ -39,6 +39,7 b' from . import ('
39 pycompat,
39 pycompat,
40 revsetlang,
40 revsetlang,
41 similar,
41 similar,
42 smartset,
42 url,
43 url,
43 util,
44 util,
44 vfs,
45 vfs,
@@ -1622,11 +1623,9 b' def registersummarycallback(repo, otr, t'
1622 if origrepolen >= len(repo):
1623 if origrepolen >= len(repo):
1623 return
1624 return
1624
1625
1625 # Compute the bounds of new revisions' range, excluding obsoletes.
1626 # Compute the bounds of new visible revisions' range.
1626 unfi = repo.unfiltered()
1627 revs = smartset.spanset(repo, start=origrepolen)
1627 revs = unfi.revs('%d: and not obsolete()', origrepolen)
1628 if not revs:
1628 if not revs:
1629 # Got only obsoletes.
1630 return
1629 return
1631 minrev, maxrev = repo[revs.min()], repo[revs.max()]
1630 minrev, maxrev = repo[revs.min()], repo[revs.max()]
1632
1631
@@ -537,5 +537,5 b' Actual test'
537 added 2 changesets with 0 changes to 0 files
537 added 2 changesets with 0 changes to 0 files
538 1 new obsolescence markers
538 1 new obsolescence markers
539 1 new orphan changesets
539 1 new orphan changesets
540 new changesets 95d586532b49 (1 drafts)
540 new changesets 66f7d451a68b:95d586532b49 (2 drafts)
541 (run 'hg update' to get a working copy)
541 (run 'hg update' to get a working copy)
General Comments 0
You need to be logged in to leave comments. Login now