Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshserver.py @ 20933:d3775db748a0
localrepo: move the addchangegroup 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.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 01 Apr 2014 15:27:53 -0700 |
parents | 8d477543882b |
children | e2806b8613ca |
line wrap: on
line diff
--- a/mercurial/sshserver.py Tue Apr 01 15:21:56 2014 -0700 +++ b/mercurial/sshserver.py Tue Apr 01 15:27:53 2014 -0700 @@ -143,7 +143,7 @@ self.sendresponse("") cg = changegroup.unbundle10(self.fin, "UN") - r = self.repo.addchangegroup(cg, 'serve', self._client()) + r = changegroup.addchangegroup(self.repo, cg, 'serve', self._client()) self.lock.release() return str(r)