Sid0 work its awesome

This commit is contained in:
Siddharth Agarwal 2013-07-31 17:18:51 -07:00
parent 37a9fccec0
commit e2cd621c96
2 changed files with 18 additions and 15 deletions

View file

@ -53,9 +53,20 @@ var commandConfig = {
},
log: {
regex: /^hg +log *$/,
regex: /^hg +log($|\s)/,
options: [
'-f'
],
dontCountForGolf: true,
delegate: function(engine, command) {
var options = command.getSupportedMap();
command.acceptNoGeneralArgs();
if (!options['-f']) {
throw new GitError({
msg: intl.str('hg-error-log-no-follow')
});
}
command.mapDotToHead();
return {
vcs: 'git',
@ -183,19 +194,6 @@ var commandConfig = {
}
},
ammend: {
regex: /^hg +ammend *$/,
delegate: function(engine, command) {
command.setOptionMap({
'--amend': true
});
return {
vcs: 'hg',
name: 'commit'
};
}
},
summary: {
regex: /^hg +(summary|sum) *$/,
delegate: function(engine, command) {