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://img.shields.io/travis/TankerHQ/tsrc.svg?branch=master 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-0.7.1.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

tsrc-0.7.1-py3-none-any.whl (49.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsrc-0.7.1.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for tsrc-0.7.1.tar.gz
Algorithm Hash digest
SHA256 6f6c3f7e06c6d363734c53db1ac5c86fcbdacc9aaf8849cee1404e2eeef5d97b
MD5 559d0ac864a2b835a7a331fb6413336c
BLAKE2b-256 33f6d5a6b7316c3218c5d47f703ee701e338c908992e1baa1b5aad501c7e5ec3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tsrc-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 49.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for tsrc-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0517405533d4cb0e54d34a9047a53d5d461db5b0678ebcdafb7a61d8932739c4
MD5 3e14825795c60af3310e3b0a5a8cec64
BLAKE2b-256 1b3906ff17f17e7001f5f692d497846a752d04e90ce9a7ce515c9d0765cccbb1

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