Mercurial > hg
comparison mercurial/changegroup.py @ 34099:6097a616178d
changegroup: delete getlocalchangegroup
As part of reducing the number of changegroup creation APIs, let's go ahead and
delete this unused function. It appears to have been deprecated in the last
release anyway.
Differential Revision: https://phab.mercurial-scm.org/D667
author | Durham Goode <durham@fb.com> |
---|---|
date | Sun, 10 Sep 2017 18:47:39 -0700 |
parents | d8245139e720 |
children | 1632999d4bed |
comparison
equal
deleted
inserted
replaced
34098:d8245139e720 | 34099:6097a616178d |
---|---|
949 if not outgoing.missing: | 949 if not outgoing.missing: |
950 return None | 950 return None |
951 return makechangegroup(repo, outgoing, version, source, | 951 return makechangegroup(repo, outgoing, version, source, |
952 bundlecaps=bundlecaps) | 952 bundlecaps=bundlecaps) |
953 | 953 |
954 def getlocalchangegroup(repo, *args, **kwargs): | |
955 repo.ui.deprecwarn('getlocalchangegroup is deprecated, use getchangegroup', | |
956 '4.3') | |
957 return getchangegroup(repo, *args, **kwargs) | |
958 | |
959 def changegroup(repo, basenodes, source): | 954 def changegroup(repo, basenodes, source): |
960 # to avoid a race we use changegroupsubset() (issue1320) | 955 # to avoid a race we use changegroupsubset() (issue1320) |
961 outgoing = discovery.outgoing(repo, missingroots=basenodes, | 956 outgoing = discovery.outgoing(repo, missingroots=basenodes, |
962 missingheads=repo.heads()) | 957 missingheads=repo.heads()) |
963 return makechangegroup(repo, outgoing, '01', source) | 958 return makechangegroup(repo, outgoing, '01', source) |