mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
prepare mercurial plugin to render changeset ids with revision
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user