Add a capability for whether a HostingService can list remote repos.

Review Request #5923 — Created June 2, 2014 and submitted

Information

Review Board
master
c575395...

Reviewers

This adds HostingService.supports_list_remote_repositories, which is
used for determining if get_remote_repositories() and
get_remote_repository() can be called. This defaults to false, but
GitHub enables it.

The API exposes this on HostingServiceResource, and
HostingServiceAccountResource uses it to determine whether to show a
'remote_repositories' link.

Unit tests pass.

Tested manually by looking at the API results for GitHub services/accounts
and non-GitHub services/accounts.

reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/webapi/resources/hosting_service_account.py
        reviewboard/hostingsvcs/github.py
        reviewboard/webapi/resources/hosting_service.py
        reviewboard/hostingsvcs/service.py
      Ignored Files:
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        reviewboard/webapi/resources/hosting_service_account.py
        reviewboard/hostingsvcs/github.py
        reviewboard/webapi/resources/hosting_service.py
        reviewboard/hostingsvcs/service.py
      Ignored Files:
    
    
  2. 
      
chipx86
david
  1. Ship It!

  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (ab0efa4)