close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changes between Version 4 and Version 5 of TracRepositoryAdmin


Ignore:
Timestamp:
2021-07-11T14:17:48-07:00 (3 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracRepositoryAdmin

    v4 v5  
    9090
    9191 `repository set <repos> <key> <value>`::
    92    Set the attribute `<key>` to `<value>` for the repository `<repos>`. 
     92   Set the attribute `<key>` to `<value>` for the repository `<repos>`.
    9393
    9494Note that the default repository has an empty name, so it will need to be quoted when running `trac-admin` from a shell. Alternatively, the name `(default)` can be used instead, for example when running `trac-admin` in interactive mode.
     
    160160Follow the help in the documentation header of the script to configure `trac-svn-hook`. You'll need to minimally set the `TRAC_ENV` variable, and may also need to set `TRAC_PATH` and `TRAC_LD_LIBRARY_PATH` for a non-standard installation or a virtual environment.
    161161
    162 Configuring the hook environment variables is even easier in Subversion 1.8 and later using the [http://svnbook.red-bean.com/en/1.8/svn.reposadmin.create.html#svn.reposadmin.hooks.configuration hook script environment] configuration. Rather than directly editing `trac-svn-hook` to set the environment variables, or exporting them from the hook that invokes `trac-svn-hook`, they can be configured through the repository `conf/hooks-env` file. 
     162Configuring the hook environment variables is even easier in Subversion 1.8 and later using the [http://svnbook.red-bean.com/en/1.8/svn.reposadmin.create.html#svn.reposadmin.hooks.configuration hook script environment] configuration. Rather than directly editing `trac-svn-hook` to set the environment variables, or exporting them from the hook that invokes `trac-svn-hook`, they can be configured through the repository `conf/hooks-env` file.
    163163
    164164Here is an example, using a Python virtual environment at `/usr/local/venv`:
     
    222222tracenv=/path/to/env  # set to your Trac environment's path
    223223repos=                # set to your repository's name
    224 REV=$(git rev-parse HEAD) 
     224REV=$(git rev-parse HEAD)
    225225trac-admin "$tracenv" changeset added "$repos" $REV
    226226}}}