Skip to content

Commit

Permalink
Merge pull request #6 from kfirprods/master
Browse files Browse the repository at this point in the history
added Hg.identify
  • Loading branch information
jdalrymple committed Oct 3, 2017
2 parents 8a9ca37 + 15ae99d commit 4a7dbff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Hg.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ class Hg {
static async version(done) {
return Command.runWithHandling('hg --version', undefined, undefined, done);
}

identify(remoteUrl, done) {
return this.constructor.identify(remoteUrl, done);
}

static async identify(remoteUrl, done) {
return Command.runWithHandling(`hg identify ${remoteUrl}`, undefined, undefined, done);
}
}

module.exports = Hg;

0 comments on commit 4a7dbff

Please sign in to comment.