add an hg commands module

This commit is contained in:
Siddharth Agarwal 2013-07-31 02:17:27 -07:00
parent 40ed5f6c9b
commit e4c0b4786c
4 changed files with 73 additions and 54 deletions

View file

@ -0,0 +1,19 @@
var _ = require('underscore');
var intl = require('../intl');
var GitCommands = require('../git/commands');
var hgCommandConfig = {
commit: {
regex: /^hg +commit($|\s)/,
options: [
'--amend',
'-m'
],
execute: function(engine, command) {
return GitCommands.gitCommandConfig.commit.execute(engine, command);
}
}
};
exports.hgCommandConfig = hgCommandConfig;