Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshrepo.py @ 5259:65dc707606ed
Push capability checking into protocol-level code.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 27 Aug 2007 14:48:08 -0700 |
parents | b534c502bfb3 |
children | 32ec518ee3cb |
line wrap: on
line diff
--- a/mercurial/sshrepo.py Mon Aug 27 14:16:04 2007 -0700 +++ b/mercurial/sshrepo.py Mon Aug 27 14:48:08 2007 -0700 @@ -131,6 +131,7 @@ self.call("unlock") def lookup(self, key): + self.requirecap('lookup', _('look up remote revision')) d = self.call("lookup", key=key) success, data = d[:-1].split(" ", 1) if int(success): @@ -168,6 +169,7 @@ return self.do_cmd("changegroup", roots=n) def changegroupsubset(self, bases, heads, kind): + self.requirecap('changegroupsubset', _('look up remote changes')) bases = " ".join(map(hex, bases)) heads = " ".join(map(hex, heads)) return self.do_cmd("changegroupsubset", bases=bases, heads=heads)