# Changes between Version 3 and Version 4 of TracRepositoryAdmin

Ignore:
Timestamp:
Apr 18, 2013 10:02:31 AM (9 years ago)
Comment:

--

### Legend:

Unmodified
 v3 ||The dir attribute specifies the location of the repository in the filesystem. It corresponds to the value previously specified in the option [trac] repository_dir. The alias and dir attributes are mutually exclusive. || ||hidden ||When set to true, the repository is hidden from the repository index page in the source browser. Browsing the repository is still possible, and links referencing the repository remain valid. || ||type ||The type attribute sets the type of version control system used by the repository. Trac supports Subversion out-of-the-box, and plugins add support for many other systems. If type is not specified, it defaults to the value of the [trac] repository_type option. || ||type ||The type attribute sets the type of version control system used by the repository. Trac supports Subversion and Git out-of-the-box, and plugins add support for many other systems. If type is not specified, it defaults to the value of the [trac] repository_type option. || ||url ||The url attribute specifies the root URL to be used for checking out from the repository. When specified, a "Repository URL" link is added to the context navigation links in the source browser, that can be copied into the tool used for creating the working copy. || /usr/bin/trac-admin /path/to/env changeset added "$1" "$2" }}} Note: Ubuntu doesn't seem to like /usr/bin/trac-admin, so just use: {{{#!sh #!/bin/sh export PYTHON_EGG_CACHE="/path/to/dir" trac-admin /path/to/env/ changeset added "$1" "$2" }}} On Windows (post-commit.cmd): {{{#!application/x-dos-batch }}} For Mercurial, add the following entries to the .hgrc file of each repository accessed by Trac (if [trac:TracMercurial] is installed in a Trac plugins directory, download [source:plugins/0.13/mercurial-plugin/tracext/hg/hooks.py hooks.py] and place it somewhere accessible): For Mercurial, add the following entries to the .hgrc file of each repository accessed by Trac (if [trac:TracMercurial] is installed in a Trac plugins directory, download [trac:source:mercurial-plugin/tracext/hg/hooks.py hooks.py] and place it somewhere accessible): {{{#!ini [hooks] == Migration from a single-repository setup (Mercurial) == #MigrationMercurial The following procedure illustrates a typical migration from a Mercurial single-repository setup to multiple repositories. Please note that at the time of writing, no initial resynchronization or any hooks are necessary for Mercurial repositories - see #9485 for more information. The following procedure illustrates a typical migration from a Mercurial single-repository setup to multiple repositories. Please note that at the time of writing, no initial resynchronization or any hooks are necessary for Mercurial repositories - see [trac:ticket:9485 #9485] for more information. 1. Upgrade to the latest version of the TracMercurial plugin.