| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | |
| 3 | = Provides a feature like [http://en.wikipedia.org/wiki/Biff Biff] for file in repository = |
| 4 | |
| 5 | == Description == |
| 6 | |
| 7 | TracChangeFileBiffPlugin is useful to query or monitor certain file in the repository when someone will update it. |
| 8 | |
| 9 | Note: TracChangeFileBiffPlugin requires Trac 1.0 or higher since it uses |
| 10 | the `list` format of text type. ([http://trac.edgewall.org/wiki/TracTicketsCustomFields TracTicketsCustomFields]) |
| 11 | |
| 12 | |
| 13 | === Features === |
| 14 | |
| 15 | - Provides a feature like [http://en.wikipedia.org/wiki/Biff Biff] for file in repository |
| 16 | |
| 17 | |
| 18 | == Configuration == |
| 19 | |
| 20 | 1. Enable TracChangeFileBiffPlugin in Plugins page. |
| 21 | |
| 22 | 2. '''''Access to File Biff admin panel''''' |
| 23 | |
| 24 | The option of `ticket-custom` section would be added when you access to File Biff admin page like this. |
| 25 | |
| 26 | {{{#!ini |
| 27 | [ticket-custom] |
| 28 | filebiff = text |
| 29 | filebiff.format = list |
| 30 | filebiff.label = Biff ; change filed label as you like |
| 31 | filebiff.multiple = true ; this option is used by TracMultiSelectBoxPlugin |
| 32 | filebiff.options = ; will be set when you configure File Biff settings |
| 33 | filebiff.size = 3 ; this option is used by TracMultiSelectBoxPlugin |
| 34 | }}} |
| 35 | |
| 36 | 3. '''''Configure a File Biff settings''''' |
| 37 | |
| 38 | [[Image(trac-plugin-changefilebiff-admin1.png)]] |
| 39 | |
| 40 | Specification: |
| 41 | |
| 42 | - White-space is not allowed to include into Name |
| 43 | - Cc and Filename are configured multiple values separated by comma. |
| 44 | - The glob pattern for Filename is allowed with [https://docs.python.org/2/library/fnmatch.html fnmatch module]. |
| 45 | |
| 46 | Added `[changefilebiff]` section after you configured File Biff settings like this. |
| 47 | |
| 48 | {{{#!ini |
| 49 | [changefilebiff] |
| 50 | biff.2e320ca20d1aed6a.cc = user1 |
| 51 | biff.2e320ca20d1aed6a.filename = *.txt, *.text |
| 52 | biff.2e320ca20d1aed6a.name = text-files |
| 53 | biff.319ddde3cb437ffc.cc = user2, guest1 |
| 54 | biff.319ddde3cb437ffc.filename = *.properties |
| 55 | biff.319ddde3cb437ffc.name = property-files |
| 56 | biff.dd487b83e5e76d08.cc = user1, user2 |
| 57 | biff.dd487b83e5e76d08.filename = *.gif, *.png, *.jpg |
| 58 | biff.dd487b83e5e76d08.name = Image-files |
| 59 | biff_keys = dd487b83e5e76d08, 319ddde3cb437ffc, 2e320ca20d1aed6a |
| 60 | }}} |
| 61 | |
| 62 | |
| 63 | == Example == |
| 64 | |
| 65 | '''''set Biff value automatically when a user committed into the repository''''' |
| 66 | [[BR]][[BR]] |
| 67 | [[Image(trac-plugin-changefilebiff-ticket1.png)]] |
| 68 | |
| 69 | [[Image(trac-plugin-changefilebiff-ticket2.png)]] |
| 70 | |
| 71 | |
| 72 | == Operation Tips == |
| 73 | |
| 74 | === integrate TracMultiSelectBoxPlugin === |
| 75 | |
| 76 | To integrate TracMultiSelectBoxPlugin is good practice for ticket maintenance like this. |
| 77 | [[BR]][[BR]] |
| 78 | [[Image(trac-plugin-changefilebiff-ticket-with-msb1.png)]] |
| 79 | |
| 80 | |
| 81 | == Bugs/Feature Requests == |
| 82 | |
| 83 | Existing bugs and feature requests for TracChangeFileBiffPlugin are |
| 84 | [https://bitbucket.org/t2y/trac.plugins.changefilebiff/issues here]. |
| 85 | |
| 86 | If you have any issues, create a |
| 87 | [https://bitbucket.org/t2y/trac.plugins.changefilebiff/issues/new new ticket]. |
| 88 | |
| 89 | |
| 90 | == Download == |
| 91 | |
| 92 | Download the archived source from [http://pypi.python.org/pypi/TracChangeFileBiffPlugin here]. |
| 93 | |
| 94 | |
| 95 | == Source == |
| 96 | |
| 97 | You can clone TracChangeFileBiffPlugin from [https://bitbucket.org/t2y/trac.plugins.changefilebiff/ here] using Mercurial, or [https://bitbucket.org/t2y/trac.plugins.changefilebiff/src browse the source]. |
| 98 | |
| 99 | |
| 100 | == Recent Changes == |
| 101 | |
| 102 | See https://bitbucket.org/t2y/trac.plugins.changefilebiff/commits. |
| 103 | |
| 104 | |
| 105 | == Author/Contributors == |
| 106 | |
| 107 | '''Author:''' [wiki:t2y] [[BR]] |
| 108 | '''Maintainer:''' [wiki:t2y] [[BR]] |
| 109 | '''Contributors:''' |