mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
prepare mercurial plugin to render changeset ids with revision
This commit is contained in:
@@ -245,3 +245,28 @@ registerConfigPanel({
|
|||||||
// register type icon
|
// register type icon
|
||||||
|
|
||||||
Sonia.repository.typeIcons['hg'] = 'resources/images/icons/16x16/mercurial.png';
|
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