mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-07-06 10:49:40 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user