Node-hg
A node js command server client for Mercurial.
Installation
npm install hg
Example
var path = ; var hg = ; // Clone into "../example-node-hg"var destPath = path; hg;
Exposed Base Classes
HGRepo
The base class for Mercurial Repo interaction. The exposed API is just wrappers around the functions available in HGRepo
.
var hg = HGRepo = hgHGRepo; var repo = "/some/path/to/repo"; reposummary { if err throw err; output;}; repo; // And so on...
HGCommandServer
The base class responsible for instantiating and communicating with a Mercurial command server. Must be instantiated in an existing Mercurial repository (check out HGRepo.MakeTempRepo
to quickly get a temporary repo up)
var hg = HGCommandServer = hgHGCommandServer; var serv = ; servstart"/some/path/to/repo" { if err throw err; console; serv; serv;};
Release Notes
0.3.1
Improvements
- Added definitions
0.2.2
Improvements
- Publish fix capabilities issue
0.2.0
Improvements
- Parser for JSON output
- Added commands
remove
branches
diff
LICENSE
MIT, No Attribution Required, Copyright 2013 Jacob Gable