Skip close check for non-local branches

Apparently nowadays some remotes contain a bunch of topic branches which
are not pulled by default.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2022-08-10 23:52:59 -05:00
parent 485806e1e3
commit 30f31c13ce

View File

@@ -741,8 +741,11 @@ def do_list(parser):
for branch, heads in items:
# only open heads
heads = [h for h in heads if b'close' not in repo.changelog.read(h)[5]]
if heads:
try:
heads = [h for h in heads if b'close' not in repo.changelog.read(h)[5]]
if heads:
branches[branch] = heads
except error.LookupError:
branches[branch] = heads
list_head(repo, cur)