//print(JSON.stringify(ret,null,4));
tr[i].getBranches();
+ tr[i].getStatus();
var hi;
try {
//tr[i].debug=1;
// highlight color.
var cb = tr[i].currentBranch;
//print(JSON.stringify(cb,null,4));
- var col = cb.lastrev == cb.remoterev ? '#ffffff' : '#ff0000';
+ var col = '#ffffff';
+ if (cb.lastrev != cb.remoterev) {
+ col = '#ff0000';
+ }
+ if (tr[i].hasLocalChanges) {
+ col = '#0000ff';
+ }
+ if ((cb.lastrev != cb.remoterev) && (tr[i].hasLocalChanges)) {
+ col = '#ff00ff';
+ }
+
this.el.set_value(ret.iter, 7, col );
}
+ },
+ pathToRepo : function(path) {
+
+ var tr= this.repos;
+
+
+ for(var i =0 ; i < tr.length; i++) {
+ if (tr[i].repopath == path) {
+ return tr[i];
+ }
+ }
+ return false;
}
},
{
//print(JSON.stringify(value));
store.el.set_value(ret.iter,4, !value);
+ var path = store.el.get_value(ret.iter, 6).value.get_string();
+ var repo = imports.Scm.Repo.Repo.get(path);
+ repo.autocommit(!value);
+
+
+
}
},
pack : "pack_start",
//print(JSON.stringify(value));
store.el.set_value(ret.iter,5, !value);
-
+ var path = store.el.get_value(ret.iter, 6).value.get_string();
+ var repo = imports.Scm.Repo.Repo.get(path);
+ repo.autopush(!value);
+
}
},
pack : "pack_start",