I remember quite vividly my dismay when I discovered that Lannes had summarily executed a hefty number of males over 21 in Pavia. He said they were rebels who violated the Cherasco armistice and attacked his troops and, in a bit of flamboyant Jacobin rhetoric, claimed they were nothing more than the Lombard version of Chouans. I felt bad about it for a moment, and then figured it was one of those sometimes necessary features of war back in the day.
Lannes was also at Jaffa, one of the generals who recognized some of the former combatants of El-Arish and Gaza. He din't seem perturbed at the execution of them, either, for reasons shared by quite a few there.
So I don't get in a wad about what happened then, simply because I can't help but judge from my perspective. so I don't judge at all.