Mercurial > hg
comparison mercurial/exchange.py @ 20925:5174c48ed8d8
localrepo: move the _changegroupsubset method in changegroup module
This is a gratuitous code move aimed at reducing the localrepo bloatness.
The method had 3 callers total, far too few for being kept in local repo.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 01 Apr 2014 13:59:55 -0700 |
parents | e10000369b47 |
children | 91b47139d0cb |
comparison
equal
deleted
inserted
replaced
20924:e10000369b47 | 20925:5174c48ed8d8 |
---|---|
179 if pushop.revs is None and not (outgoing.excluded | 179 if pushop.revs is None and not (outgoing.excluded |
180 or pushop.repo.changelog.filteredrevs): | 180 or pushop.repo.changelog.filteredrevs): |
181 # push everything, | 181 # push everything, |
182 # use the fast path, no race possible on push | 182 # use the fast path, no race possible on push |
183 bundler = changegroup.bundle10(pushop.repo, bundlecaps) | 183 bundler = changegroup.bundle10(pushop.repo, bundlecaps) |
184 cg = pushop.repo._changegroupsubset(outgoing, | 184 cg = changegroup.getsubset(pushop.repo, |
185 bundler, | 185 outgoing, |
186 'push', | 186 bundler, |
187 fastpath=True) | 187 'push', |
188 fastpath=True) | |
188 else: | 189 else: |
189 cg = pushop.repo.getlocalbundle('push', outgoing, bundlecaps) | 190 cg = pushop.repo.getlocalbundle('push', outgoing, bundlecaps) |
190 | 191 |
191 # apply changegroup to remote | 192 # apply changegroup to remote |
192 if unbundle: | 193 if unbundle: |