diffsvn2git
Nodejs lib to convert a svn commit revision to a git diff.
Distribution
Usage
- initialization
var DiffSvn2Git = ;var diffSvn2Git = // these parameters will be used by the svn spawn dependency. cwd: '/svn/awesome-repo/awesome-repo' username: 'awesome-user' // optional if authentication not required or is already saved password: 'pass' // optional if authentication not required or is already saved noAuthCache: true // optional, if true, username does not become the logged in user on the machine;
- listRevisionsByDate (work in progress)
Lists all the revision information by date in JSON format.
diffSvn2Git.listRevisionsByDate().then((revJson) => {
console.log(revJson);
});
- parse
The parse method reads the repository and generates a git diff from the revision passed, or the last commit's revision. if the revision parameter is not passed to the method.
diffSvn2Git.parse().then((patch) => {
console.log(patch);
});