Changes between Version 29 and Version 30 of CodeReviewerPlugin


Ignore:
Timestamp:
Dec 24, 2016, 3:40:56 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Update for new trac-admin codereviewer resync command.

Legend:

Unmodified
Added
Removed
Modified
  • CodeReviewerPlugin

    v29 v30  
    4646 1. Install the plugin, after downloading and unzipping:
    4747 {{{#!sh
    48 cd codereviewerplugin/0.12
    49 sudo python setup.py bdist_egg
    50 sudo cp dist/TracCodeReviewer*.egg /your/trac/location/plugins/
     48$ cd codereviewerplugin/0.12
     49$ sudo python setup.py bdist_egg
     50$ sudo cp dist/TracCodeReviewer*.egg /your/trac/location/plugins/
    5151}}}
    5252
     
    7171 4. After the above, upgrade your Trac environment:
    7272 {{{#!sh
    73 sudo trac-admin /path/to/projenv upgrade
     73$ sudo trac-admin /path/to/projenv upgrade
     74}}}
     75
     76 5. Resync the repository
     77 {{{#!sh
     78$ sudo trac-admin /path/to/projenv codreviewer resync <repos>
    7479}}}
    7580
     
    114119In the example above, each time a code review is submitted for a completed ticket, the {{{stage_deploy}}} Jenkins job gets triggered. The job would then call [browser:codereviewerplugin/0.12/coderev/util/reviewer.py Reviewer.get_next_changeset()] to determine what git changeset to deploy (if any). Note that this trigger for, say, a stage environment would be in addition to any trigger for running tests against the HEAD of your branch, or however you may currently have your CI system set up.
    115120
    116 ==== Ticket-changeset map
    117 
    118 In order for the [browser:codereviewerplugin/0.12/coderev/util/reviewer.py Reviewer] to know all changesets that reference a given ticket, it needs a reliable ticket-changeset map. The built-in {{{revision}}} table is unfortunately not sufficiently reliable for some version control systems, eg Git. This is a known issue. So this plugin comes with its own changeset listener that manages a new {{{codereviewer_map}}} table. For existing changesets, you can run a provided [browser:codereviewerplugin/0.12/coderev/util/sync.py sync.py] utility once to populate the table, but should not need it after that.
    119 
    120121==== Completeness criteria
    121122