Changes between Version 7 and Version 8 of TracTicketChangesetsPlugin


Ignore:
Timestamp:
Jun 17, 2010 5:17:20 AM (4 years ago)
Author:
mrelbe
Comment:

De-windozed trac-admin commands (replaced %ENV% with /path/to/env)

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketChangesetsPlugin

    v7 v8  
    4444 
    4545Console administration commands are available for resynchronizing relations between tickets and changesets: 
    46  * `trac-admin %ENV% ticket_changesets diff` 
    47  * `trac-admin %ENV% ticket_changesets reformat` (DANGEROUS!) 
    48  * `trac-admin %ENV% ticket_changesets resync` 
     46 * `trac-admin /path/to/env ticket_changesets diff` 
     47 * `trac-admin /path/to/env ticket_changesets reformat` (DANGEROUS!) 
     48 * `trac-admin /path/to/env ticket_changesets resync` 
    4949 
    5050Please see the in-built documentation for more details. 
     
    7070 1. The Trac environment needs to be upgraded: 
    7171{{{ 
    72 trac-admin %ENV% upgrade 
     72trac-admin /path/to/env upgrade 
    7373}}} 
    7474 1. Re-synchronize repositories (optional, but recommended before next step which will scan all existing commit messages): 
    7575{{{ 
    76 trac-admin %ENV% repository resync "*" 
     76trac-admin /path/to/env repository resync "*" 
    7777}}} 
    7878 1. Build relations between tickets and changesets: 
    7979{{{ 
    80 trac-admin %ENV% ticket_changesets resync 
     80trac-admin /path/to/env ticket_changesets resync 
    8181}}} 
    8282 1. Re-format existing ticket commit messages (DANGEROUS!) 
    8383    a. Produce a diff-like output for your analysis, which does not affect the database, before re-formatting existing commit messages: 
    8484{{{ 
    85 trac-admin %ENV% ticket_changesets diff > out.diff 
     85trac-admin /path/to/env ticket_changesets diff > out.diff 
    8686}}} 
    8787       Examine out.diff and assert that re-formatting is sensible before next step. 
    8888    a. Re-format '''(DANGEROUS!)''' 
    8989{{{ 
    90 trac-admin %ENV% ticket_changesets reformat 
     90trac-admin /path/to/env ticket_changesets reformat 
    9191}}} 
    9292 1. Setup hook-scripts (Windows example, does not differ from official instructions applicable to Trac 0.12): 
     
    9595:: Trac 0.12 post-commit hook script for Windows 
    9696:: 
    97 @SET TRAC_ENV=... 
    9897@SET REPOS=%1 
    9998@SET REV=%2 
    100 @trac-admin "%TRAC_ENV%" changeset added "%REPOS%" "%REV%" 
     99@trac-admin /path/to/env changeset added "%REPOS%" "%REV%" 
    101100}}} 
    102101    a. post-revprop-change.cmd 
     
    104103:: Trac 0.12 post-revprop-change hook script for Windows 
    105104:: 
    106 @SET TRAC_ENV=... 
    107105@SET REPOS=%1 
    108106@SET REV=%2 
    109 @trac-admin "%TRAC_ENV%" changeset modified "%REPOS" "%REV%" 
     107@trac-admin /path/to/env changeset modified "%REPOS" "%REV%" 
    110108}}} 
    111109