Rename HostingServiceRepository to RemoteRepository and add new fields.

Review Request #5896 — Created May 29, 2014 and submitted

Information

Review Board
master
26ac4da...

Reviewers

This standardizes on RemoteRepository as the name, which matches the
name of the upcoming API resource. It also adds some new fields to the
resource for storing the unique (per-service) ID of the repository and
the HostingService and account that the repository is linked to.

While in here, I noticed that the wrong field was being used to fetch
the repository's URL for GitHub. This updates to use `clone_url` instead
of `url`.

Unit tests pass.

Tested this by hand with the upcoming APIs.

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

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