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.0a1.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tsrc-0.4.0a1.tar.gz
Algorithm Hash digest
SHA256 cdebea8a2a2703b204abb1f0cb07df1dd47d6c092cdb26731fca4bf49f28843f
MD5 709031dd6b0d2b0045de3abfa161189f
BLAKE2b-256 65b619a05af07c877ccafb2d3270ddf955ac50ce0d385c6e28fdb2f53f1b646b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tsrc-0.4.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 07585849a715f64939542fb63e959977bfaec311fd03299514d4a23733162400
MD5 85ccf351205ffda1351bc00d58058372
BLAKE2b-256 9578bcce92ea0f5128b323f9e2c49f4ddc4394b1a5be98d05234b15e81705584

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