Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including svn-helper with all npm packages installed. Try it out:

var svnHelper = require("svn-helper")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

svn-helper v1.2.2

svn-helper is a command line tool that aims to improve working with multiple subversion repositories at specific versions. For this it provides commands to switch multiple working copies at once.

svn-helper

npm version MIT license Build Status CircleCI Maintainability Coverage Status codecov

svn-helper is a command line tool that aims to improve working with multiple subversion repositories at specific versions. For this it provides commands to switch multiple working copies at once.

Usage

Commands

* [`svn-helper help [COMMAND]`](#svn-helper-help-command) * [`svn-helper merge [PATH]`](#svn-helper-merge-path) * [`svn-helper switch [PATH]`](#svn-helper-switch-path) * [`svn-helper switch-release`](#svn-helper-switch-release) * [`svn-helper switch-subsystem [SUBSYSTEM]`](#svn-helper-switch-subsystem-subsystem)

svn-helper help [COMMAND]

display help for svn-helper

USAGE
  $ svn-helper help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

svn-helper merge [PATH]

merge from another version

USAGE
  $ svn-helper merge [PATH]

OPTIONS
  -b, --branch=(trunk|branches|tags)  branch type
  -h, --help                          show CLI help
  -q, --quiet                         supress svn output
  -v, --version=version               version

ALIASES
  $ svn-helper m

EXAMPLES
  $ svn-helper merge -b trunk
  $ svn-helper merge -b branches -v 1.2.3

See code: src/commands/merge.ts

svn-helper switch [PATH]

switch repository to a different version

USAGE
  $ svn-helper switch [PATH]

OPTIONS
  -b, --branch=(trunk|branches|tags)  branch type
  -h, --help                          show CLI help
  -q, --quiet                         supress svn output
  -v, --version=version               version

ALIASES
  $ svn-helper sw

EXAMPLES
  $ svn-helper switch -b trunk
  $ svn-helper switch -b branches -v 1.2.3

See code: src/commands/switch.ts

svn-helper switch-release

switch repositories to configured release versions

USAGE
  $ svn-helper switch-release

OPTIONS
  -c, --concurrency=concurrency  number of concurrent running tasks (0 = infinity)
  -h, --help                     show CLI help
  -q, --quiet                    supress svn output
  -r, --release=release          release name

ALIASES
  $ svn-helper swr

EXAMPLE
  $ svn-helper switch-release -r 1.2

See code: src/commands/switch-release.ts

svn-helper switch-subsystem [SUBSYSTEM]

switch repositories for a configured subsystem to a different version

USAGE
  $ svn-helper switch-subsystem [SUBSYSTEM]

OPTIONS
  -b, --branch=(trunk|branches|tags)  branch type
  -c, --concurrency=concurrency       number of concurrent running tasks (0 = infinity)
  -h, --help                          show CLI help
  -q, --quiet                         supress svn output
  -v, --version=version               version

ALIASES
  $ svn-helper sws

EXAMPLES
  $ svn-helper switch-subsystem -b trunk subsystem1
  $ svn-helper switch-subsystem -b branches -v 1.2.3 subsystem1

See code: src/commands/switch-subsystem.ts

Config example

.svnhelper.conf

{
  "releases": [
    {
      "name": "TestRelease",
      "versions": [
        {"name": "branches/1.0", "projects": ["proj1", "proj3"]},
        {"name": "branches/1.2.3", "projects": ["proj2", "proj4", "proj5"]}
      ]
    },
    {
      "name": "TestRelease2",
      "versions": [
        {"name": "branches/1.2.3", "projects": ["proj1", "proj3"]},
        {"name": "branches/1.2.3", "projects": ["proj2", "proj4"]}
      ]
    }
  ],
  "subsystems": [
    {
      "name": "core",
      "projects": ["proj1"]
    },
    {
      "name": "pluginA",
      "projects": ["proj2"]
    },
    {
      "name": "SystemX",
      "projects": ["proj3", "proj4"]
    }
  ]
}

Caveats

It is assumed that the subversion repositories adhere to the recommend directory structure using trunk, branches/{version} and tags/{version}.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free