Commits

Ronny Pfannschmidt committed 33278d5

ignore closed remotes for convience

Comments (0)

Files changed (1)

hg_remotebranches.py

 import os
 
 from mercurial import config
+from mercurial import context
 from mercurial import hg
 from mercurial import node
 from mercurial import ui
                             # to avoid infinite recursion if the hash is bogus
                             n = self.changelog._match(hash)
                             if n:
-                                remotebranches[name] = n
+                                # we need rev since node will recurse lookup
+                                ctx = context.changectx(self,
+                                                        self.changelog.rev(n))
+                                if not ctx.extra().get('close'):
+                                    remotebranches[name] = n
                 return remotebranches
 
             def lookup(self, key):