equal
deleted
inserted
replaced
701 return |
701 return |
702 |
702 |
703 repo = pushop.repo |
703 repo = pushop.repo |
704 # very naive computation, that can be quite expensive on big repo. |
704 # very naive computation, that can be quite expensive on big repo. |
705 # However: evolution is currently slow on them anyway. |
705 # However: evolution is currently slow on them anyway. |
706 revs = repo.revs(b'::%ln', pushop.futureheads) |
706 nodes = (c.node() for c in repo.set(b'::%ln', pushop.futureheads)) |
707 pushop.outobsmarkers = pushop.repo.obsstore.relevantmarkers(revs=revs) |
707 pushop.outobsmarkers = pushop.repo.obsstore.relevantmarkers(nodes) |
708 |
708 |
709 |
709 |
710 @pushdiscovery(b'bookmarks') |
710 @pushdiscovery(b'bookmarks') |
711 def _pushdiscoverybookmarks(pushop): |
711 def _pushdiscoverybookmarks(pushop): |
712 ui = pushop.ui |
712 ui = pushop.ui |
2603 ): |
2603 ): |
2604 """add an obsolescence markers part to the requested bundle""" |
2604 """add an obsolescence markers part to the requested bundle""" |
2605 if kwargs.get('obsmarkers', False): |
2605 if kwargs.get('obsmarkers', False): |
2606 if heads is None: |
2606 if heads is None: |
2607 heads = repo.heads() |
2607 heads = repo.heads() |
2608 revs = repo.revs(b'::%ln', heads) |
2608 subset = [c.node() for c in repo.set(b'::%ln', heads)] |
2609 markers = repo.obsstore.relevantmarkers(revs=revs) |
2609 markers = repo.obsstore.relevantmarkers(subset) |
2610 markers = obsutil.sortedmarkers(markers) |
2610 markers = obsutil.sortedmarkers(markers) |
2611 bundle2.buildobsmarkerspart(bundler, markers) |
2611 bundle2.buildobsmarkerspart(bundler, markers) |
2612 |
2612 |
2613 |
2613 |
2614 @getbundle2partsgenerator(b'phases') |
2614 @getbundle2partsgenerator(b'phases') |