Skip to main content

Manage multiple repositories

Project description

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

https://img.shields.io/github/license/TankerHQ/tsrc.svg https://github.com/TankerHQ/tsrc/workflows/tests/badge.svg https://github.com/TankerHQ/tsrc/workflows/linters/badge.svg https://img.shields.io/codecov/c/github/TankerHQ/tsrc.svg?label=Coverage https://img.shields.io/pypi/v/tsrc.svg

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsrc-1.0.0.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsrc-1.0.0-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

Details for the file tsrc-1.0.0.tar.gz.

File metadata

  • Download URL: tsrc-1.0.0.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.6

File hashes

Hashes for tsrc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 79c87ef17b8a2a0b09195ded1c987646be8928b875bf8a3b8103d06133b3a062
MD5 8cf300021ad7a00c9e31b6ebae7c0725
BLAKE2b-256 72ec7240d8e6880c0807df34452b9e9e554f545ec187bb29d369d2100cdea429

See more details on using hashes here.

File details

Details for the file tsrc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tsrc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 57.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.6

File hashes

Hashes for tsrc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dbda4713ad1a64a765399a0211c39c61b43513330e9e1a4e2c48e3aec456940
MD5 7b3411942d4efd2a7c880d2f10589997
BLAKE2b-256 150050678fc21b3bf006548a06a8d67da3cc3e0230fe31cdfa554ef94e56c7ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page