svnwrapper

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 7 Imported by: 0

README

SvnWrapper

Codacy Badge

This is Subversion command-line client wrapper. Additional parameters are passed by "flags" slice.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Svn

type Svn struct{}

func (*Svn) Add

func (svn *Svn) Add(targetPaths []string, flags []string) error

func (*Svn) CheckIn

func (svn *Svn) CheckIn(targetPaths []string, message string, flags []string) error

func (*Svn) CheckOut

func (svn *Svn) CheckOut(sourceUrl string, targetPath string, revision string, flags []string) error

func (*Svn) Cleanup

func (svn *Svn) Cleanup(targetPaths []string, flags []string) error

func (*Svn) Copy

func (svn *Svn) Copy(sourceUrl string, targetUrl string, message string, flags []string) error

func (*Svn) Export

func (svn *Svn) Export(sourceUrl string, targetPath string, revision string, flags []string) error

func (*Svn) HardReset

func (svn *Svn) HardReset(targetPaths []string, deleteExternal bool) error

func (*Svn) Import

func (svn *Svn) Import(targetUrl string, sourcePath string, message string, flags []string) error

func (*Svn) Info

func (svn *Svn) Info(sourceUrl string, flags []string) (SvnInfo, error)

func (*Svn) List

func (svn *Svn) List(sourceUrl string, flags []string) ([]string, error)

func (*Svn) Log

func (svn *Svn) Log(sourceUrl string, flags []string) (SvnLog, error)

func (*Svn) MakeDir

func (svn *Svn) MakeDir(targetUrl string, message string, flags []string) error

func (*Svn) Revert

func (svn *Svn) Revert(targetPaths []string, flags []string) error

func (*Svn) Status

func (svn *Svn) Status(targetPath string, flags []string) (SvnStatus, error)

type SvnInfo

type SvnInfo struct {
	XMLName xml.Name `xml:"info"`
	Entry   struct {
		Revision    string             `xml:"revision,attr"`
		Path        string             `xml:"path,attr"`
		Kind        string             `xml:"kind,attr"`
		URL         string             `xml:"url"`
		RelativeURL string             `xml:"relative-url"`
		Repository  SvnInfoEntryRepo   `xml:"repository"`
		Commit      SvnInfoEntryCommit `xml:"commit"`
	} `xml:"entry"`
}

type SvnInfoEntry

type SvnInfoEntry struct {
	Revision    string             `xml:"revision,attr"`
	Path        string             `xml:"path,attr"`
	Kind        string             `xml:"kind,attr"`
	URL         string             `xml:"url"`
	RelativeURL string             `xml:"relative-url"`
	Repository  SvnInfoEntryRepo   `xml:"repository"`
	Commit      SvnInfoEntryCommit `xml:"commit"`
}

type SvnInfoEntryCommit

type SvnInfoEntryCommit struct {
	Revision string `xml:"revision,attr"`
	Author   string `xml:"author"`
	Date     string `xml:"date"`
}

type SvnInfoEntryRepo

type SvnInfoEntryRepo struct {
	Root string `xml:"root"`
	UUID string `xml:"uuid"`
}

type SvnLog

type SvnLog struct {
	XMLName    xml.Name      `xml:"log"`
	LogEntries []SvnLogEntry `xml:"logentry"`
}

type SvnLogEntry

type SvnLogEntry struct {
	Revision string       `xml:"revision,attr"`
	Author   string       `xml:"author"`
	Date     string       `xml:"date"`
	Message  string       `xml:"msg"`
	Paths    []SvnLogPath `xml:"paths>path"`
}

type SvnLogPath

type SvnLogPath struct {
	//XMLName xml.Name `xml:"path"`
	Path   string `xml:",chardata"`
	Action string `xml:"action,attr"`
	Kind   string `xml:"kind,attr"`
}

type SvnStatus

type SvnStatus struct {
	XMLName xml.Name        `xml:"status"`
	Target  SvnStatusTarget `xml:"target"`
}

type SvnStatusEntry

type SvnStatusEntry struct {
	Path     string `xml:"path,attr"`
	WCStatus struct {
		Status string `xml:"item,attr"`
	} `xml:"wc-status"`
}

type SvnStatusTarget

type SvnStatusTarget struct {
	Path    string           `xml:"path,attr"`
	Entries []SvnStatusEntry `xml:"entry"`
}

Jump to

Keyboard shortcuts

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