Mercurial extension to affect multiple repositories simultaneously.
Project description
Mercurial extension to affect multiple repositories simultaneously. All commands that affect other repositories (push, paths, out and bundle) are wrapped.
Install
If you have installed multirepo.py in your PYTHONPATH, activate the extension in .hgrc:
[extensions] hgext.multirepo=
Otherwise, you will need to specify the full path to the extension:
[extensions] multirepo = path/to/multirepo.py
Usage
Add paths to target to .hgrc in the multirepo section; attributes starting with path. are interpreted as targets for multirepo:
[multirepo] path.abc = /path/to/a/repo path.another = /path/to/another/repo
The default path (or default-push if it is defined) is included in the list of paths to this extension will target unless you set include.default to False:
[multirepo] include.default = False path.abc = /path/to/a/repo path.another = /path/to/another/repo
All wrapped commands affect all targets unless a specific target is given on the command-line.
Colophon
- about:
I first wrote multirepo so that I could push to a backup repo and a public repo in a single operation. Then, I started using the extension at work to manage a series of repos used by the team.
- contributors:
Iain Lowe <iain.lowe@gmail.com>
Faheem Mitha <faheem on #mercurial>
Brendan Cully <brendan on #mercurial>
- copyright:
Copyright (C) 2009-2010 by Iain Lowe <iain.lowe@gmail.com>.
- license:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.