Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshserver.py @ 12337:6a6149487817
bundle: encapsulate all bundle streams in unbundle class
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 20 Sep 2010 14:32:21 -0500 |
parents | c327bfa5e831 |
children | 40bb5853fc4b |
line wrap: on
line diff
--- a/mercurial/sshserver.py Sun Sep 19 13:12:45 2010 -0500 +++ b/mercurial/sshserver.py Mon Sep 20 14:32:21 2010 -0500 @@ -6,7 +6,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import util, hook, wireproto +import util, hook, wireproto, changegroup import os, sys class sshserver(object): @@ -130,7 +130,8 @@ return self.sendresponse("") - r = self.repo.addchangegroup(self.fin, 'serve', self._client(), + cg = changegroup.unbundle10(self.fin, "UN") + r = self.repo.addchangegroup(cg, 'serve', self._client(), lock=self.lock) return str(r)