Changes between Version 11 and Version 12 of TracTicketChangesetsPlugin


Ignore:
Timestamp:
Jun 22, 2010, 8:34:41 AM (14 years ago)
Author:
Mikael Relbe
Comment:

Admin commands section added

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketChangesetsPlugin

    v11 v12  
    4949The macros `CommitMessage(repo, rev)` and `TicketChangesets(ticket)` are provided to present a commit message for a given repository and revision, and all changesets that are related to a given ticket.
    5050
    51 Console administration commands are available for resynchronizing relations between tickets and changesets:
    52  * `trac-admin /path/to/env ticket_changesets diff`
    53  * `trac-admin /path/to/env ticket_changesets reformat` (DANGEROUS!)
    54  * `trac-admin /path/to/env ticket_changesets resync`
    5551
    56 Please see the in-built documentation for more details.
     52== Console administration commands ==
     53
     54Console administration commands are available for retrieving and re-synchronizing ticket-changesets relations, and reformatting existing ticket commit messages.
     55
     56
     57 `trac-admin /path/to/env ticket_changesets diff`::
     58 Examine ticket commit messages before reformat.
     59
     60 Generate a diff-like output for analysis before reformatting. The database will not be changed. Before this operation, you may want to run
     61{{{
     62trac-admin $ENV repository resync "*"
     63}}}
     64
     65
     66 `trac-admin /path/to/env ticket_changesets get [ticketid]`::
     67 Get a comma-separated list of related revisions (#7267).
     68
     69 List format:
     70{{{
     71#ticketid: rev/reponame,...
     72...
     73}}}
     74 "/reponame" is left out for the default repository.
     75
     76 All tickets related to changesets are listed if ticketid is omitted, one ticket on each line. If no changeset relation exists, "None" is displayed.
     77
     78
     79 `trac-admin /path/to/env ticket_changesets reformat` '''(DANGEROUS!)'''::
     80 Reformat ticket commit messages.
     81
     82 Before this operation, you may want to run:
     83{{{
     84trac-admin $ENV repository resync "*"
     85}}}
     86 and then analyse the output of
     87{{{
     88trac-admin $ENV ticket_changesets diff
     89}}}
     90
     91
     92 `trac-admin /path/to/env ticket_changesets resync`::
     93 Re-synchronize ticket changesets with all repositories
     94
     95 Relations between tickets and changesets are re-built by examining all commit messages, in all repositories, for ticket references. Ticket comments are neither updated nor added due to new discoveries.
     96
     97 Before this operation, you may want to run:
     98{{{
     99trac-admin $ENV repository resync "*"
     100}}}
     101
    57102
    58103== Installation instructions ==