svn

package
v0.0.0-...-017ad64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2017 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Repo Repo // Git repository we are working on

	Url string // SVN URL to work from

	Verbose       bool
	Metadata      bool   // include metadata in git logs (git-svn-id)
	NoMinimizeUrl bool   // accept URLs as-is without attempting to connect a higher level directory
	RootIsTrunk   bool   // use this if the root level of the repo is equivalent to the trunk and there are no tags or branches
	Rebase        bool   // instead of cloning a new project, rebase an existing one against SVN
	UserName      string // username for transports that needs it (http(s), svn)
	Trunk         string // subpath to trunk from repository URL
	Branches      string // subpath to branches from repository URL
	Tags          string // subpath to tags from repository URL
	Exclude       string // regular expression to filter paths when fetching
	Revision      string // start importing from SVN revision START_REV; optionally end at END_REV. e.g. START_REV:END_REV

	NoTrunk    bool   // do not import anything from trunk
	NoBranches bool   // do not import anything from branches
	NoTags     bool   // do not import anything from tags
	Authors    string // path to file containing svn-to-git authors mapping
}

func NewContext

func NewContext(svnurl string) *Context

func NewContextFrom

func NewContextFrom(svnurl string,
	Verbose bool,
	Metadata bool,
	NoMinimizeUrl bool,
	RootIsTrunk bool,
	Rebase bool,
	UserName string,
	Trunk string,
	Branches string,
	Tags string,
	Exclude string,
	Revision string,

	NoTrunk bool,
	NoBranches bool,
	NoTags bool,
	Authors string,
) *Context

func (*Context) Run

func (ctx *Context) Run() error

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

Repo models a git repository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL