Skip to content
Manage several git repositories / review automation
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci Rewrite imports Dec 18, 2018
custom_theme/img Add tsrc logo Nov 23, 2017
docs Add dates in changelog Apr 8, 2019
stubs Bump to mypy 0.700 Apr 5, 2019
tsrc Bump to mypy 0.700 Apr 5, 2019
.coveragerc
.gitignore Switch to dmenv Nov 6, 2018
.travis.yml Remove support for 3.4, add support for 3.7 Apr 8, 2019
CONTRIBUTING.md Finish up switch to dmenv Nov 7, 2018
ISSUE_TEMPLATE.md ISSUE_TEMPLATE: replace h1 by h3 Dec 4, 2017
LICENSE Fix LICENSE to match github's template Aug 9, 2017
MANIFEST.in Add a THANKS file Oct 6, 2017
README.rst DOn't use raw HTML in README.rst Apr 2, 2019
THANKS Add Théo to THANKS Oct 12, 2017
mkdocs.yml Fix mkdocs warning Aug 6, 2018
publish.sh Finish up switch to dmenv Nov 7, 2018
requirements.lock Bump Jinja2 and urllib3 May 3, 2019
setup.cfg Switch to dmenv Nov 6, 2018
setup.py setup.py: sort dependencies May 3, 2019
tbump.toml Bump to 0.6.6 Apr 2, 2019

README.rst

https://raw.githubusercontent.com/TankerHQ/sdk-js/master/src/public/tanker.png

https://img.shields.io/travis/TankerHQ/tsrc.svg?branch=master https://img.shields.io/codecov/c/github/TankerHQ/tsrc.svg?label=Coverage

tsrc: manage multiple repos / review automation

Overview · Installation · Usage example · Documentation · Release notes · Contributing · License

Overview

tsrc is a command-line tool that helps you manage groups of several git repositories. It also provides some code review automation.

In can be seen in action on asciinema.org.

Installation

tsrc is available on pypi an can be installed via pip. It requires Python 3.4 or later.

Usage Example

  • Create a manifest repository. (git@example.org/manifest)
  • Push a file named manifest.yml looking like:
repos:
  - src: foo
    url: git@example.com/foo.git

  - src: bar
    url: git@example.com/bar.git
  • Create a new workspace with all the repositories listed in the manifest:
$ tsrc init git@git.local/manifest.git

:: Configuring workspace in /path/to/work
...
=> Cloning missing repos
* (1/2) foo
...
* (2/2) bar
...
: Configuring remotes
Done ✓
  • Synchronize all the repositories in the workspace:
$ tsrc sync
=> Updating manifest
...
:: Configuring remotes
:: Synchronizing workspace
* (1/2) foo
=> Fetching origin
=> Updating branch
Already up to date
* (2/2) bar
=> Updating branch
Updating 29ac0e1..b635a43
Fast-forward
 bar.txt | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 bar.txt
Done ✓
  • Push current branch for review:
$ cd bar
$ git checkout new-feature
# hackity hack
$ tsrc push
=> Running git push
Branch 'new-feature' set up to track remote branch 'new-feature' from 'origin'.
Everything up-to-date
=> Creating merge request
:: See merge request at https://github.com/foo/bar/pull/42

Documentation

For more details and examples, please refer to tsrc documentation.

Release notes

Detailed changes for each release are documented in the changelog.

Contributing

We welcome feedback, bug reports, and bug fixes in the form of pull requests.

Detailed instructions can be found in the documentation.

License

tsrc is licensed under a BSD 3-Clause license.

You can’t perform that action at this time.