Mercurial > public > mercurial-scm > hg
comparison mercurial/sshserver.py @ 22390:e2806b8613ca
changegroup: rename bundle-related functions and classes
Functions like getbundle and classes like unbundle10 really manipulate
changegroups and not bundles. A HG10 bundle is the same as a changegroup
plus a small header, but this is no longer the case for a HG2X bundle,
so it's better to separate the names a bit.
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Tue, 02 Sep 2014 12:11:36 +0200 |
parents | d3775db748a0 |
children | 9f6e0e7ef828 |
comparison
equal
deleted
inserted
replaced
22389:94f77624dbb5 | 22390:e2806b8613ca |
---|---|
140 if not self.lock: | 140 if not self.lock: |
141 self.sendresponse("not locked") | 141 self.sendresponse("not locked") |
142 return | 142 return |
143 | 143 |
144 self.sendresponse("") | 144 self.sendresponse("") |
145 cg = changegroup.unbundle10(self.fin, "UN") | 145 cg = changegroup.cg1unpacker(self.fin, "UN") |
146 r = changegroup.addchangegroup(self.repo, cg, 'serve', self._client()) | 146 r = changegroup.addchangegroup(self.repo, cg, 'serve', self._client()) |
147 self.lock.release() | 147 self.lock.release() |
148 return str(r) | 148 return str(r) |
149 | 149 |
150 def _client(self): | 150 def _client(self): |