1. Ronny Pfannschmidt
  2. hg-remotebranches


Ronny Pfannschmidt  committed 33278d5

ignore closed remotes for convience

  • Participants
  • Parent commits 89a3bc3
  • Branches default

Comments (0)

Files changed (1)

File hg_remotebranches.py

View file
 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):