From b7ea69294fc69e13a9524ab17332798e4788d71e Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Tue, 31 May 2011 10:46:52 -0700 Subject: [PATCH] Prevent exception in incoming with hg <= 1.6 With this patch, incoming against a git repo returns "no changes found" with hg <= 1.6. --- hggit/gitrepo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hggit/gitrepo.py b/hggit/gitrepo.py index 0067b80ff2..62febb24c2 100644 --- a/hggit/gitrepo.py +++ b/hggit/gitrepo.py @@ -32,6 +32,9 @@ class gitrepo(repo.repository): def pushkey(self, namespace, key, old, new): return False + # used by incoming in hg <= 1.6 + def branches(self, nodes): + return [] instance = gitrepo