Changeset 189 in tracdarcs for README.rst
- Timestamp:
- 06/11/10 16:55:39 (3 years ago)
- Hash name:
- 20100611145539-97f81-3fbf064055a682248b642255691cdfca2fec1617
- File:
-
- 1 edited
-
README.rst (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
README.rst
r188 r189 9 9 __ http://trac.edgewall.org/wiki/MultipleRepositorySupport 10 10 __ http://trac.edgewall.org/milestone/0.12 11 __ http://trac.edgewall.org/browser/sandbox/multirepos12 11 13 12 It used to work on 0.11, and even with 0.10, at least up to version … … 71 70 ----------------------- 72 71 73 The recommended way to trigger the sync between the repository and the74 Trac instance is by using a darcs `post hook`__ on its ``apply``: in 75 this way the database will be updated as soon as darcs finish applying 76 a ny new changeset.72 The `recommended way`__ to trigger the sync between the repository and 73 the Trac instance is by using a darcs `post hook`__ on its ``apply``: 74 in this way the database will be updated as soon as darcs finish 75 applying any new changeset. 77 76 78 77 This can be accomplished by putting something like the following 79 78 setting into the repository ``_darcs/prefs/defaults`` file:: 80 79 81 apply posthook trac-admin TRAC_ENV changeset add $(pwd) $(python -m tracdarcs.changesparser)80 apply posthook trac-admin TRAC_ENV changeset added $(pwd) $(python -m tracdarcs.changesparser) 82 81 apply run-posthook 83 82 … … 85 84 the related trac instance. 86 85 87 Btw, ``python -m tracdarcs.changesparser`` is just a quick way of 88 extracting the list of changeset hashes from the the ``darcs changes 89 --xml`` format: it accepts the input either as the 90 ``$DARCS_PATCHES_XML`` or from standard input:: 91 92 $ darcs changes --xml | python -m tracdarcs.changesparser | head -3 93 20100611081300-97f81-bc5c1f7acf0c168bbfa9fb911e3cc2a4e71d5eef 94 20100610150339-97f81-cd1b73f2ba1b1d98c28542ecbd1d5e2bd9052056 95 20100512164420-97f81-de3fbc73d7c401fb92503ef1b25e19e0f48d2ad1 96 97 86 .. note:: ``python -m tracdarcs.changesparser`` is just a quick way of 87 extracting the list of changeset hashes from the the ``darcs 88 changes --xml`` format: it accepts the input either as the 89 ``$DARCS_PATCHES_XML`` or from standard input:: 90 91 $ darcs changes --xml | python -m tracdarcs.changesparser | head -3 92 20100611081300-97f81-bc5c1f7acf0c168bbfa9fb911e3cc2a4e71d5eef 93 20100610150339-97f81-cd1b73f2ba1b1d98c28542ecbd1d5e2bd9052056 94 20100512164420-97f81-de3fbc73d7c401fb92503ef1b25e19e0f48d2ad1 95 96 At that point, you could deactivate the per request sync that Trac 97 still does by default, by setting ``repository_sync_per_request`` to 98 an empty value in the ``[trac]`` section of the configuration. 99 100 __ http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin#ExplicitSync 98 101 __ http://darcs.net/manual/node7.html#SECTION00712000000000000000 99 102
Note: See TracChangeset
for help on using the changeset viewer.