prepare mercurial plugin to render changeset ids with revision

This commit is contained in:
Sebastian Sdorra
2012-12-04 21:38:43 +01:00
parent 80c500cbf8
commit 677e822f7b

View File

@@ -245,3 +245,28 @@ registerConfigPanel({
// register type icon
Sonia.repository.typeIcons['hg'] = 'resources/images/icons/16x16/mercurial.png';
// override ChangesetViewerGrid to render changeset id's with revisions
Ext.override(Sonia.repository.ChangesetViewerGrid, {
isMercurialRepository: function(){
return this.repository.type == 'hg';
},
getChangesetId: function(id, record){
if ( this.isMercurialRepository() ){
// TODO implement
}
return id;
},
getParentIds: function(id, record){
var parents = record.get('parents');
if ( this.isMercurialRepository() ){
// TODO implement
}
return parents;
}
});