Skip to main content

A simple svn branch tool with externals support

Project description

A lightweight svn branch tool with externals support.

features

  • Cross-platform (Windows/Linux/MacOSX)

  • Create branch through svn URLs directly, no need to clone entire repository

  • Auto scans externals from one or more URLs or local repository

  • Support all kinds of externals forms

  • Support peg revision and operative revision

  • Support non-ascii svn paths or externals

Installation

Just perform

$ pip install svnbranch

which will install this command line tool on your system.

Usage

  1. It auto scans externals from one or more URLs or local copy, and create a config template contains externals information.

    $ svnbranch create_config D:\Tmp\sample\trunk\src

    will get a config_template.json in the working directory, for example:

    {
        "branch_map": {
            "https://hqc-pc:12000/svn/sample/": {
                "trunk/README.md/": "",
                "trunk/src/": "",
                "trunk/third_party/": ""
            }
        },
        "external_cache": {
            "...": "..."
        },
        "url_list": [
            "..."
        ],
        "version": 1
    }
  2. Customize your config.

    Define branch_map, and the result config file looks like this:

    {
        "branch_map": {
            "https://hqc-pc:12000/svn/sample/": {
                "trunk/README.md/": "branches/bak_{uuid}/README.md",
                "trunk/src/": "/branches/bak_{uuid}/src",
                "trunk/third_party/": "branches/bak_{uuid}/3rdparty"
            }
        },
        "...": "..."
    }
    • The {uuid} is will be replaced by -uid, –uuid argument of create_branch sub command.

  3. Create branches or delete branches with your config, add -t to simulate the operation.

    $ svnbranch create_branch conf/my_branch.json -t

    $ svnbranch delete_branch conf/my_branch.json 20180121T1557 -t

Repository

The project is hosted on GitHub. You can look at the source here:

https://github.com/fyrestone/svnbranch

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

svnbranch-1.1.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

svnbranch-1.1-py2.py3-none-any.whl (13.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file svnbranch-1.1.tar.gz.

File metadata

  • Download URL: svnbranch-1.1.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for svnbranch-1.1.tar.gz
Algorithm Hash digest
SHA256 b923ca1681753e39e07579ebcf4f2415e3cdb8a15243bd94ae264f255f815126
MD5 c74dd93feb13ea1280b5bd8937d1a540
BLAKE2b-256 73d0c8e9834c553f7a4609fe4279434eeed8011f6e4103ee7d73a9f78dfa2be3

See more details on using hashes here.

File details

Details for the file svnbranch-1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for svnbranch-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5f220442686cb2e0e7749a2be6704d4a13f50bd0850f7daf01eeea584353b273
MD5 316d34c1e22c6039ac515b0bcc2e3d9f
BLAKE2b-256 5858f620b2b3e086a5f6affb1283ff32586d3b2966894ed9f098bff5c98c68b2

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