svn

SVN interface for js


Keywords
svn
License
MIT
Install
npm install svn@0.4.0

Documentation

SVN Handles for node. I got tired of all the spawn() calls needed to run our custom Continuous Integration server.

This simply spawns processes using the svn cli, so svn must be installed and available via the PATH of the Node.js process.

Usage

npm install svn

var SVN = require('svn');
var svn = new SVN('./working_copy');

svn.get_remote(function(error, result){
  console.log('remote is:', result);
});

svn.log({limit: 5}, function(error, result){
  console.log('The last 5 commit messages are:');
  result.forEach(function(rev){
    console.log(rev.message);
  });
});

svn.log({start: 4426, end:'HEAD'}, function(error, result){
  console.log('Changes since revision 4426:');
  result.forEach(function(rev){
    console.log(rev.message);
  });
})