Edgewall Software

Changes between Version 33 and Version 34 of MultipleRepositorySupport


Ignore:
Timestamp:
Jan 26, 2010, 12:05:46 PM (10 years ago)
Author:
Remy Blank
Comment:

Added comment about Mercurial hooks.

Legend:

Unmodified
Added
Removed
Modified
  • MultipleRepositorySupport

    v33 v34  
    106106Not strictly needed before the merge but would be nice:
    107107 - #7743 for mercurial - should add a contrib file there, containing a `hook` function calling the Trac API appropriately, and have an example of a command hook calling trac-admin directly.
     108   - A separate script is not strictly necessary (at least on Linux). The following section in `hgrc` does the trick:
     109   {{{
     110[hooks]
     111commit = trac-admin /path/to/env changeset added repo_name $HG_NODE
     112changegroup = hg log -r $HG_NODE: --template "{node} " | xargs trac-admin /path/to/env changeset added repo_name
     113   }}}
     114   This should be documented in TracMercurial, though. OTOH, for Windows we will need a Python hook anyway, so we could as well create a generic one.
    108115
    109116=== Major ===