Skip to main content

Manage multiple repositories

Project description

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

Demo

tsrc demo on asciinema.org

Documentation

See https://supertanker.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

  • 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

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

Uploaded Source

Built Distribution

tsrc-0.4.0-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsrc-0.4.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tsrc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d1bfb8d3f3c9b3f8fdfbee07dba1bb6bffc11642d0ef13c0135e20eb72e829a3
MD5 8eac09a7d7908f70cb85e0a1c9b035ef
BLAKE2b-256 34651b174b2168c5f66c3a33c6cd425bd3f5e45607c3de4acbc4a7b0668684ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tsrc-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 42.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tsrc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df716303ecc4725aebe55cbfc88ba574a0fe6ca69747caf6c63748bb2b32856a
MD5 162cfc4c7116025682901a3f491d5c07
BLAKE2b-256 5ba9e1a65d13448b67a85a1dc8f883344a922e8eaeb63dc604f7648cc86b61d6

See more details on using hashes here.

Supported by

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