1.1.6 • Published 2 years ago

node-svnlook v1.1.6

Weekly downloads
13
License
MIT
Repository
github
Last release
2 years ago

node-svnlook

npm Build Status npm

A NodeJs wrapper for the svnlook utility. Contains all the methods exposed by the command line svnlook tool.

npm install node-svnlook --save

Example usage

var svnlook = require('node-svnlook');

svnlook.changed('/my/svn/repo', 
	{	// optional options object - can be passed to any command not just changed
		shell: "sh", 			// override shell used to execute command
		cwd: process.cwd(),		// override working directory command is executed
		revision: 33050,		// provide --revision to commands that accept it
		transaction: ax9,		// provide --transaction to commands that accept it
		params: [ '--copy-info' ] // extra parameters to pass
	},
    function(err, output) {
        console.log(output);
    });

Functions

author(repoPath, options, callback)

Print the author of a revision or transaction in the repository.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

cat(repoPath, target, options, callback)

Print the contents of a file.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
targetstringPath in repo to target
optionsobjectOptions object
callbackfunctionComplete callback

changed(repoPath, options, callback)

Print the paths that were changed in a particular revision or transaction.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

date(repoPath, options, callback)

Print the datestamp of a revision or transaction in a repository.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

diff(repoPath, options, callback)

Print GNU-style differences of changed files and properties in a repository.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

dirsChanged(repoPath, options, callback)

Print the directories that were themselves changed (property edits) or whose file children were changed.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

filesize(repoPath, target, options, callback)

Print the size (in bytes) of a versioned file.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
targetstringPath in repo to target
optionsobjectOptions object
callbackfunctionComplete callback

history(repoPath, target, options, callback)

Print information about the history of a path in the repository (or the root directory if no path is supplied).

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
targetstringPath in repo to target
optionsobjectOptions object
callbackfunctionComplete callback

info(repoPath, options, callback)

Returns object with the author, date, log message size, and log message.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

lock(repoPath, target, options, callback)

If a lock exists on a path in the repository, describe it.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
targetstringPath in repo to target
optionsobjectOptions object
callbackfunctionComplete callback

log(repoPath, options, callback)

Print the log message.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

propget(propName, repoPath, target, options, callback)

List the value of a property on a path in the repository.

Kind: global function

ParamTypeDescription
propNamestringProperty name
repoPathstringPath to repository
targetstringPath in repo to target
optionsobjectOptions object
callbackfunctionComplete callback

proplist(repoPath, target, options, callback)

List the properties of a path in the repository.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
targetstringPath in repo to target
optionsobjectOptions object
callbackfunctionComplete callback

tree(repoPath, target, options, callback)

Print the tree.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
targetstringPath in repo to target
optionsobjectOptions object
callbackfunctionComplete callback

uuid(repoPath, options, callback)

Print the repository's UUID.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

youngest(repoPath, options, callback)

Print the youngest revision number.

Kind: global function

ParamTypeDescription
repoPathstringPath to repository
optionsobjectOptions object
callbackfunctionComplete callback

Attributions

This project relied heavily on the design of node-svn-ultimate.

1.1.6

2 years ago

1.1.4

3 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago