56 | | Please see the in-built documentation for more details. |
| 52 | == Console administration commands == |
| 53 | |
| 54 | Console 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 | {{{ |
| 62 | trac-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 | {{{ |
| 84 | trac-admin $ENV repository resync "*" |
| 85 | }}} |
| 86 | and then analyse the output of |
| 87 | {{{ |
| 88 | trac-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 | {{{ |
| 99 | trac-admin $ENV repository resync "*" |
| 100 | }}} |
| 101 | |