changeset 409:2e773ed95066

Prevent exception in incoming with hg <= 1.6 With this patch, incoming against a git repo returns "no changes found" with hg <= 1.6.
author Brendan Cully <brendan@kublai.com>
date Tue, 31 May 2011 10:46:52 -0700
parents 2dcfd4bbfc1a
children d89d4e93bc46
files hggit/gitrepo.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/gitrepo.py	Tue May 24 11:16:45 2011 -0700
+++ b/hggit/gitrepo.py	Tue May 31 10:46:52 2011 -0700
@@ -32,6 +32,9 @@
     def pushkey(self, namespace, key, old, new):
         return False
 
+    # used by incoming in hg <= 1.6
+    def branches(self, nodes):
+        return []
 
 instance = gitrepo