Skip to main content

Manage multiple repositories

Project description

https://img.shields.io/travis/TankerHQ/tsrc.svg?branch=master https://img.shields.io/pypi/v/tsrc.svg https://img.shields.io/github/license/TankerHQ/tsrc.svg

Demo

tsrc demo on asciinema.org

Documentation

See https://TankerHQ.github.io/tsrc/

Screenshots

  • tsrc sync

https://dmerej.info/blog/pics/tsrc-sync.png
  • tsrc log

https://dmerej.info/blog/pics/tsrc-log.png

Tutorial

Getting started

  • Make sure you are using Python3.4 or higher.

  • Install tsrc with pip3 as usual.

  • 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
  • Clone the repositories with:

    $ mkdir workspace
    $ cd workspace
    $ tsrc init git@example/manifest.git

In this example:

  • foo will be cloned in <workspace>/foo using git@example.com:foo.git origin url.

  • Similarly, bar will be cloned in <workspace>/bar using git@example.com/bar.git

Managing Merge Requests on GitLab

  • Generate a token from GitLab

  • Add the http url to the manifest:

    gitlab:
      url: http://gitlab.local
  • Create a ~/.config/tsrc.yml looking like:

    auth:
      gitlab:
        token: <YOUR TOKEN>
  • Start working on your branch

  • Create the pull request:

    $ tsrc push --assignee <an active user>
  • When the review is done, tell GitLab to merge it once the CI passes:

    $ tsrc push --accept

Managing Pull Requests on GitHub

  • Start working on your branch

  • Run tsrc push once. You will be prompted for your login and password (then a token will be saved so you don’t have to authenticate again). The pull request will be created.

You can use the --reviewer option several times to request reviews from your team mates. You can also assign someone to the pull request with the --assign option.

Then you can use tsrc push --merge to merge the pull request, or tsrc push --close to close it.

Why not Google repo?

See the FAQ

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.6.4.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

tsrc-0.6.4-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsrc-0.6.4.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for tsrc-0.6.4.tar.gz
Algorithm Hash digest
SHA256 945384374e0d8633d9bd5556e1210e5af48b33b93eb05ab0dbfbfb7638818d39
MD5 01db249768e6f84083fc659fb473051f
BLAKE2b-256 46d6d2f4223a0edb2b681ea5afcc28f2decaea42f7972785b20aec4b02a9e4fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tsrc-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 48.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for tsrc-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f5fd4a32429f6bfb1f8e5423ef51763997e30488b75f495ac2f937d02e0efd4d
MD5 90a4d67cf190d06ba02e4a1f4670917a
BLAKE2b-256 ed85798e9caa224ac967ec54173029729ea0a4f9b7d0d3e009adf28831e66a8a

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