genshi icon indicating copy to clipboard operation
genshi copied to clipboard

Do not merge sub directives if they have not been changed

Open cedk opened this issue 3 years ago • 7 comments

When extracting new directives only new sub directives must be merged in the parent sub directive.

Fixes #48

cedk avatar Nov 07 '21 14:11 cedk

Thank you very much for your contribution. As the test suite is happy I guess we can merge that. However the new condition seems to be pretty complex and I can't figure out what it actually does. Any chance we can ease understanding that piece of code with some local variables (= good naming) or a comment?

FelixSchwarz avatar Nov 13 '21 09:11 FelixSchwarz

Indeed it is testing that the new directives have been added to the substream by the extra directive. I do not know how you are naming usually the content of a substream?

cedk avatar Nov 13 '21 10:11 cedk

@FelixSchwarz Is the comment enough? It will be great if we could have soon a release with this fix.

cedk avatar Dec 08 '21 21:12 cedk

@cedk I guess the comment is ok - the code itself is complex but that's the way it is.

Unfortunately I have almost zero free time in December so @hodgestar could handle/merge this issue?

FelixSchwarz avatar Dec 08 '21 22:12 FelixSchwarz

Unfortunately I have almost zero free time in December so @hodgestar could handle/merge this issue?

Could anyone find some time to merge?

zipus avatar Jan 26 '22 16:01 zipus

It is too bad this did not reach 0.7.6. Is there something I can do to not miss the next release?

cedk avatar Feb 12 '22 01:02 cedk

@cedk I'm sorry this didn't get merged, but I didn't want to delay the release. Now that I've migrated the release process to Github Actions, I think the solution is to just do another release as soon as the current PRs are dealt with.

hodgestar avatar Feb 13 '22 21:02 hodgestar