0.1.1 • Published 7 years ago

diffsvn2git v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

diffsvn2git

Codacy Code Badge Codacy Coverage Badge Circle CI Dependency Status

Dependency Status devDependency Status

npm Stories in Ready Join the chat at https://gitter.im/diffsvn2git/Lobby npm

Nodejs lib to convert a svn commit revision to a git diff.

NPM

Distribution

Usage

  • initialization
var DiffSvn2Git = require('diffsvn2git');
var diffSvn2Git = new 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);
});
0.1.1

7 years ago

0.1.0

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago