Mercurial > hg
comparison mercurial/changegroup.py @ 20931:de60ca3a390e
localrepo: move the changegroup method in changegroup module
This is a gratuitous code move aimed at reducing the localrepo bloatness.
The method had few callers, not enough to be kept in local repo.
The peer API stay unchanged.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 01 Apr 2014 15:08:27 -0700 |
parents | 4a987060d97e |
children | 0ac83e4e4f7c |
comparison
equal
deleted
inserted
replaced
20930:4a987060d97e | 20931:de60ca3a390e |
---|---|
508 if not heads: | 508 if not heads: |
509 heads = cl.heads() | 509 heads = cl.heads() |
510 outgoing = discovery.outgoing(cl, common, heads) | 510 outgoing = discovery.outgoing(cl, common, heads) |
511 return getlocalbundle(repo, source, outgoing, bundlecaps=bundlecaps) | 511 return getlocalbundle(repo, source, outgoing, bundlecaps=bundlecaps) |
512 | 512 |
513 def changegroup(repo, basenodes, source): | |
514 # to avoid a race we use changegroupsubset() (issue1320) | |
515 return changegroupsubset(repo, basenodes, repo.heads(), source) | |
516 |