Add support for listing commits by branch ID.

Review Request #5986 — Created June 12, 2014 and submitted

Information

Review Board
release-2.0.x
620d7ef...

Reviewers

Branches now contain a branch ID, which represents that specific branch.
In most cases, this would just be the name of the branch, but SVN uses a
relative path instead.

This branch ID can be passed to get_commits() to limit the commits to
those on the branch.

As of this change, this is not yet supported by the web API, but that's
coming up soon.

Tested this by hand, and with the upcoming change to the web API and
the New Review Request page. I was able to filter commits by branch,
and see only those that 'svn log' would show for the given branch.

reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/scmtools/models.py
        reviewboard/scmtools/svn/pysvn.py
        reviewboard/scmtools/tests.py
        reviewboard/scmtools/core.py
        reviewboard/webapi/resources/repository_commits.py
        reviewboard/hostingsvcs/service.py
        reviewboard/hostingsvcs/github.py
        reviewboard/scmtools/svn/__init__.py
        reviewboard/hostingsvcs/tests.py
      Ignored Files:
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        reviewboard/scmtools/models.py
        reviewboard/scmtools/svn/pysvn.py
        reviewboard/scmtools/tests.py
        reviewboard/scmtools/core.py
        reviewboard/webapi/resources/repository_commits.py
        reviewboard/hostingsvcs/service.py
        reviewboard/hostingsvcs/github.py
        reviewboard/scmtools/svn/__init__.py
        reviewboard/hostingsvcs/tests.py
      Ignored Files:
    
    
  2. 
      
david
  1. Ship It!

  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (2d42176)