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

@ -55,6 +55,18 @@ var Command = Backbone.Model.extend({
return string.replace(/\./g, 'HEAD');
},
/**
* Since mercurial always wants revisions with
* -r, we want to just make these general
* args for git
*/
appendOptionR: function() {
var rOptions = this.getSupportedMap()['-r'] || [];
this.setGeneralArgs(
this.getGeneralArgs().concat(rOptions)
);
},
mapDotToHead: function() {
var generalArgs = this.getGeneralArgs();
var options = this.getSupportedMap();