Prevent exception in incoming with hg <= 1.6

With this patch, incoming against a git repo returns "no changes found"
with hg <= 1.6.
This commit is contained in:
Brendan Cully 2011-05-31 10:46:52 -07:00
parent 95c74ae913
commit b7ea69294f

View File

@ -32,6 +32,9 @@ class gitrepo(repo.repository):
def pushkey(self, namespace, key, old, new): def pushkey(self, namespace, key, old, new):
return False return False
# used by incoming in hg <= 1.6
def branches(self, nodes):
return []
instance = gitrepo instance = gitrepo