Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshrepo.py @ 1736:50de0887bbcd
add preoutgoing and outgoing hooks.
preoutgoing lets prevent pull over http or ssh.
outgoing lets notify after pull.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 17 Feb 2006 08:26:21 -0800 |
parents | 9d2c2e6b32b5 |
children | ced2d3620f95 |
comparison
equal
deleted
inserted
replaced
1735:791405fe9991 | 1736:50de0887bbcd |
---|---|
108 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] | 108 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] |
109 return p | 109 return p |
110 except: | 110 except: |
111 raise hg.RepoError(_("unexpected response '%s'") % (d[:400] + "...")) | 111 raise hg.RepoError(_("unexpected response '%s'") % (d[:400] + "...")) |
112 | 112 |
113 def changegroup(self, nodes): | 113 def changegroup(self, nodes, kind): |
114 n = " ".join(map(hex, nodes)) | 114 n = " ".join(map(hex, nodes)) |
115 f = self.do_cmd("changegroup", roots=n) | 115 f = self.do_cmd("changegroup", roots=n) |
116 return self.pipei | 116 return self.pipei |
117 | 117 |
118 def addchangegroup(self, cg): | 118 def addchangegroup(self, cg): |