mercurial test coverage

This commit is contained in:
Peter Cottle 2013-08-04 13:27:33 -07:00
parent 7db6f0d38c
commit bf132f8f09
8 changed files with 122 additions and 18 deletions

View file

@ -58,6 +58,7 @@ var commandConfig = {
'-r'
],
delegate: function(engine, command) {
command.appendOptionR();
var options = command.getSupportedMap();
if (!options['-r']) {
throw new GitError({
@ -197,7 +198,11 @@ var commandConfig = {
update: {
regex: /^hg +(update|up)($|\s+)/,
options: [
'-r'
],
delegate: function(engine, command) {
command.appendOptionR();
return {
vcs: 'git',
name: 'checkout'
@ -207,7 +212,11 @@ var commandConfig = {
backout: {
regex: /^hg +backout($|\s+)/,
options: [
'-r'
],
delegate: function(engine, command) {
command.appendOptionR();
return {
vcs: 'git',
name: 'revert'
@ -231,9 +240,6 @@ var commandConfig = {
}
},
// TODO rebase :OOOO need to graft? engine work
// rebase: {
pull: {
regex: /^hg +pull($|\s+)/,
delegate: function(engine, command) {