This commit is contained in:
Peter Cottle 2013-07-31 22:20:55 -07:00
parent bd95734751
commit edb4f0dc2a
5 changed files with 387 additions and 67 deletions

View file

@ -52,6 +52,26 @@ var commandConfig = {
}
},
graft: {
regex: /^hg +graft($|\s)/,
options: [
'-r'
],
delegate: function(engine, command) {
var options = command.getSupportedMap();
if (!options['-r']) {
throw new GitError({
msg: intl.str('git-error-options')
});
}
command.setGeneralArgs(options['-r']);
return {
vcs: 'git',
name: 'cherrypick'
};
}
},
log: {
regex: /^hg +log($|\s)/,
options: [