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.
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: branches( ):
branch_ combo.addItem( url_for_ display( br.base) )
if getattr(repo, "iter_branches", None):
for br in repo.iter_
And btw, you need initialize dialog with hidden throbber.