fix(postprocess/merge_same_sigs): use the revisions that the node is actually known to be in #533

Merged
ada4a merged 2 commits from ada4a/mergiraf:521 into main 2025-07-26 14:56:51 +02:00

View file

@ -0,0 +1,4 @@
module.exports = {
'to be [FAILED]' : function(test) {},
'to be [FAILED]' : function() {}
}

View file

@ -0,0 +1,8 @@
module.exports = {
'to be [FAILED]' : function(test) {},
'to be [FAILED]' : function() {},
'to be with message [PASSED]' : function(test) {
var expect = this.client.api.expect.element('#weblogin').to.be.an('input', 'weblogin should be an input');
this.client.on('nightwatch:finished', function(results, errors) {})
},
}

View file

@ -0,0 +1,8 @@
module.exports = {
'to be [FAILED]' : function(test) {},
'to be [FAILED]' : function() {},
'to be with message [PASSED]' : function(test) {
var expect = this.client.api.expect.element('#weblogin').to.be.an('input', 'weblogin should be an input');
this.client.on('nightwatch:finished', function(results, errors) {})
}
}

View file

@ -0,0 +1,4 @@
module.exports = {
'to be [FAILED]' : function(test) {},
'to be [FAILED]' : function() {},
}

View file

@ -6,7 +6,7 @@ use regex::Regex;
use crate::{
ast::AstNode,
class_mapping::{ClassMapping, Leader, RevNode, RevisionNESet},
class_mapping::{ClassMapping, Leader, RevNode},
lang_profile::CommutativeParent,
merged_tree::MergedTree,
pcs::Revision,
@ -270,11 +270,8 @@ fn merge_same_sigs<'a>(
let v = add_separators(left_revnodes, separator, add_separator)
.into_iter()
.map(|rev_node| {
MergedTree::new_exact(
class_mapping.map_to_leader(rev_node),
RevisionNESet::singleton(Revision::Left).with(Revision::Right),
class_mapping,
)
let leader = class_mapping.map_to_leader(rev_node);
MergedTree::new_exact(leader, class_mapping.revision_set(&leader), class_mapping)
})
.collect();
(v, false)