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.5 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.2.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

tsrc-1.0.2-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsrc-1.0.2.tar.gz
  • Upload date:
  • Size: 40.9 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.1

File hashes

Hashes for tsrc-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3762d285ef00674d109a922ebc0e1588c31b27e2636fa59d7be85dc2a7dc97a7
MD5 96273a0d8dab77feebbdcd48f412dec6
BLAKE2b-256 4828135ef918afdeeca037fb1e853bea5a9d9a82d694f996364e425dafceb787

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tsrc-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 64.6 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.1

File hashes

Hashes for tsrc-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3ecaaf9be4212a7acb6660444301e819ab64907c7f1cc5cf4ce3bbc81708435
MD5 a205b1d0ce2612c5e08d20115e9cdd42
BLAKE2b-256 2f7b10bd7c9d0f1e20b3869f2deb0db1402746a58e0085ba9b9f2fcdb3631237

See more details on using hashes here.

Supported by

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