Comment 7 for bug 412058

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 412058] Re: qswitch: don't block directory picker while searching all branches in shared repo because it's slow

Gary van der Merwe пишет:
> So there are test that expect find_branches to return a list, so we are
> going to need to add a iter_branches method. I'm not going to work on
> this now, so if someone else (Jelvier/bialix) wants to pick it up, that
> would be great.

Gary, iter_branches sounds like right thing re backward compatibility. I'll look what we can do about.

Javier, you can use iter_branches in your code right now: just check that repository object has such
attribute with code:

        if repo is not None:
            if getattr(repo, "iter_branches", None):
                for br in repo.iter_branches():
                    branch_combo.addItem(url_for_display(br.base))

And btw, you need initialize dialog with hidden throbber.