Mercurial > hg
comparison mercurial/bundle2.py @ 46409:29e3e46b0a22
narrow: delete a stale TODO about not sending groups the client already has
2c5835b4246b changed the changegroup generation to not send
treemanifests for directories the client had before widening. As that
commit mentions, we had already stopped before that commit to send the
changelog and filelogs for files the client already had.
Differential Revision: https://phab.mercurial-scm.org/D9898
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 27 Jan 2021 22:10:57 -0800 |
parents | 3e91d9978bec |
children | 5aac1a1a5beb |
comparison
equal
deleted
inserted
replaced
46408:e948ad0dcbe2 | 46409:29e3e46b0a22 |
---|---|
2534 commonnodes = set() | 2534 commonnodes = set() |
2535 cl = repo.changelog | 2535 cl = repo.changelog |
2536 for r in repo.revs(b"::%ln", common): | 2536 for r in repo.revs(b"::%ln", common): |
2537 commonnodes.add(cl.node(r)) | 2537 commonnodes.add(cl.node(r)) |
2538 if commonnodes: | 2538 if commonnodes: |
2539 # XXX: we should only send the filelogs (and treemanifest). user | |
2540 # already has the changelog and manifest | |
2541 packer = changegroup.getbundler( | 2539 packer = changegroup.getbundler( |
2542 cgversion, | 2540 cgversion, |
2543 repo, | 2541 repo, |
2544 oldmatcher=oldmatcher, | 2542 oldmatcher=oldmatcher, |
2545 matcher=newmatcher, | 2543 matcher=newmatcher, |