Package 'svn'

Title: Interface Between SVN and R
Description: Get information on SVN repositories through R. Explore file status, commit logs etc.
Authors: Alan Haynes
Maintainer: Alan Haynes <[email protected]>
License: MIT
Version: 0.4.0
Built: 2024-11-04 19:52:41 UTC
Source: https://github.com/CTU-Bern/svn

Help Index


Find conflicts in repo

Description

Find conflicts in repo

Usage

svn_conflict(path_to_repo = NULL)

Arguments

path_to_repo

path(s) to the folder(s) whose status to query (if NULL it uses the working directory). Can be a vector.

Value

character vector of conflicts (tree or otherwise)

Examples

# svn_conflict(path_to_some_repo)

get details on the status of an svn repo

Description

get details on the status of an svn repo

Usage

svn_details(path_to_repo = NULL)

Arguments

path_to_repo

path(s) to the folder(s) whose status to query (if NULL it uses the working directory). Can be a vector.

Value

character

Examples

# svn_details()

Log of commits in repository/repositories

Description

Log of commits in repository/repositories

Usage

svn_log(path_to_repo = NULL)

Arguments

path_to_repo

path(s) to the folder(s) whose status to query (if NULL it uses the working directory). Can be a vector.

Value

list of dataframes containing repo, revision, user, date, number of lines and commit message

Examples

# svn_log(path_to_some_repo)

Get SVN revision number

Description

Get SVN revision number

Usage

svn_revnum(path_to_repo = NULL, update = TRUE)

Arguments

path_to_repo

path to repo(s)

update

perform an svn update before getting the revision number?

Value

number or list of numbers

Examples

# svn_revnum(path_to_some_repo)

States of files in repo

Description

States of files in repo

Usage

svn_state(path_to_repo = NULL, ignored = FALSE)

Arguments

path_to_repo

path(s) to the folder(s) whose status to query (if NULL it uses the working directory). Can be a vector.

ignored

logical. Return ignored/unversioned files only?

Value

list containing lists of each type of file status (e.g. added (add), deleted (delete), ...)

Examples

# svn_state(path_to_some_repo)