xtype: Gtk.Dialog,
listeners : {
destroy_event : function (self, event) {
- this.el.hide();
- return false;
+ print("DESTROY?!");
+ return true;
},
response : function (self, id) {
// hide
});
// shouild set path..
*/
-
+ this.el.set_deletable(false);
this.el.show_all();
// load clones..
this.get('/reposStore').load();
//print(JSON.stringify(ret,null,4));
tr[i].getBranches();
+ tr[i].getStatus();
+ var hi;
try {
- tr[i].debug=1;
- var hi = tr[i].history('/', 1, 'branch', tr[i].currentBranch.name );
- print(JSON.stringify(hi.null,4));
- } catch(e) { }
+ //tr[i].debug=1;
+ hi = tr[i].history('/', 1, 'branch', tr[i].currentBranch.name );
+ // print(JSON.stringify(hi,null,4));
+ } catch(e) { print(e);}
this.el.set_value(ret.iter, 0, '' + tr[i].repopath.split('/').pop() );
this.el.set_value(ret.iter, 1, '' + tr[i].currentBranch.name );
function(e) { return e.name;
}).join(', ')
);
- this.el.set_value(ret.iter, 3, '' + 'tbc' );
+ this.el.set_value(ret.iter, 3, '' + (!hi ? '??' : hi[0].changed_raw));
this.el.set_value(ret.iter, 4, tr[i].autocommit() );
this.el.set_value(ret.iter, 5, tr[i].autopush() );
this.el.set_value(ret.iter, 6, tr[i].repopath );
// highlight color.
var cb = tr[i].currentBranch;
- print(JSON.stringify(cb,null,4));
- var col = cb.lastrev == cb.remoterev ? '#ffffff' : '#ff0000';
+ //print(JSON.stringify(cb,null,4));
+ 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 );
}