And he said unto them, When I sent you without purse, and scrip, and shoes, lacked ye any thing? And they said, Nothing. Then said he unto them, But now, he that hath a purse, let him take it, and likewise his scrip: and he that hath no sword, let him sell his garment, and buy one.
What did Jesus do when one of those very two swords was used?
and he that hath no sword, let him sell his garment, and buy one.
You raise an interesting question...
I don't know if here (Luke 22:36) Jesus is speaking about what is going to happen later that night (when Judas brings the cops) and someone (Peter probably) whacks off an ear (i.e. is Jesus getting the details laid out for another miracle as it were)...
...or if he is saying "get a sword for later warfare..."