mercurial commands fixed with new option parsing logic

This commit is contained in:
Peter Cottle 2013-11-19 10:00:38 -08:00
parent 1ba46f7705
commit bf52d640d5
2 changed files with 19 additions and 8 deletions

View file

@ -67,6 +67,14 @@ var Command = Backbone.Model.extend({
);
},
// if order is important
prependOptionR: function() {
var rOptions = this.getOptionsMap()['-r'] || [];
this.setGeneralArgs(
rOptions.concat(this.getGeneralArgs())
);
},
mapDotToHead: function() {
var generalArgs = this.getGeneralArgs();
var options = this.getOptionsMap();