Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Command line tools for working with Review Board

Add the resource_mimetype decorator for client API resource classes

The `resource_mimetype` decorator is added to reduce the repetition in
the client API resources code. Each client resource needs to specify a
mimetype to the resource map so that we can match responses to resource
classes. This was traditionally done by just updating the resource map
by hand. The new decorator takes a mimetype and updates the resource
map with the decorated class.

Testing Done:
Ran unit tests.

Posted this review request with `rbt post`.

Able to run `rbt` commands.

Reviewed at https://reviews.reviewboard.org/r/7003/
latest commit 05d3aa4ba8
Barret Rennie brennie authored

README

About rbtools
=============

rbtools is a set of client tools to use with Review Board.

This consists of the following officially supported tools:

    * rbt
      - Execute a number of useful sub-commands to interact with local source
        code repositories and Review Board.

    * Python API Client
      - Python bindings to simplify interaction with the Review Board
        Web API.


There are also some user-contributed scripts and application plugins in the
contrib directory. See the associated README files for more information.


Testing rbtools
===============

This is of interest mostly to developers of rbtools.


Installation
------------

To run all the tests, you will need to install hgsubversion::

   $ easy_install hgsubversion

This may need apr-config, also known as apr-1-config, to run.  This is
part of the apache distribution.  On ubuntu, you can get it via::

   $ sudo apt-get install libapr1-dev  # also try apache2-dev or httpd-dev

hgsubversion also requires that you set up an :file:`.hgrc` in your home
directory with the following contents::

   [extensions]
   hgsvn = /path/to/hgsubversion

This will be something like
:file:`/usr/local/lib/python2.7/dist-packages/hgsubversion`.
If you already have an ``[extensions]`` section in your :file:`.hgrc`, just add
the hgsvn line to it.

You will also need nose::

   $ easy_install nose


Running
-------

Just run::

   $ nosetests

from the top of the rbtools directory. You can run nosetests in subdirectories
to just run the tests in that directory.  See `'nosetests --help'` for more
options.
Something went wrong with that request. Please try again.