Mercurial > hg > hg-git
diff hgrepo.py @ 231:bdaec2a079ce
initial support for 'hg outgoing'
author | Abderrahim Kitouni <a.kitouni@gmail.com> |
---|---|
date | Fri, 31 Jul 2009 18:15:02 +0100 (2009-07-31) |
parents | 51e4d6ebbc40 |
children | 0ba1aee0467c |
line wrap: on
line diff
--- a/hgrepo.py +++ b/hgrepo.py @@ -24,6 +24,15 @@ else: #pragma: no cover return super(hgrepo, self).push(remote, force, revs) + def findoutgoing(self, remote, base=None, heads=None, force=False): + if isinstance(remote, gitrepo): + git = GitHandler(self, self.ui) + base, heads = git.get_refs(remote.path) + out, h = super(hgrepo, self).findoutgoing(remote, base, heads, force) + return out + else: #pragma: no cover + return super(hgrepo, self).findoutgoing(remote, base, heads, force) + def tags(self): if self.tagscache: return self.tagscache