MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit 7355fd5e authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/model.js: break(), break the given clusters

parent 49ba914b
......@@ -1263,9 +1263,35 @@ changeCloneNotation: function(cloneNotationType) {
this.update()
},
/**
* break the given clusters into 1-clone clusters
* @param {integer list} clusters
* */
break: function (clusters) {
console.log("break(" + clusters+ ")")
if (clusters == undefined)
clusters = this.getSelected();
console.log("break(" + clusters+ ")")
this.saveClusters()
for (var i = 0; i < clusters.length; i++) {
var list = this.clusters[clusters[i]]
console.log("b " + list)
for (var j = 0; j < list.length; j++) {
this.clusters[list[j]] = [list[j]]
}
this.updateElem(list);
}
},
/**
* reset clusters to default 1-clones clusters
* break all clusters to default 1-clone clusters
* */
resetClusters: function () {
this.saveClusters()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment