svn-helper
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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]

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}.

Readme

Keywords

Package Sidebar

Install

npm i svn-helper

Weekly Downloads

14

Version

1.2.2

License

MIT

Unpacked Size

40.4 kB

Total Files

34

Last publish

Collaborators

  • tfriem