There are coding charts on line for m lenses. Find best match and code with sharpie pen and see how it works.
If you bought a screw mount, code able lens screw to M adapters available on line. I used GM black and arctic white car paint.
My advice , I have three CV lenses I use for paper weights. Also mount adapters are not Leica quality, some too thick, some uneven, one too thin. Unless you know how to repair and have tools to measure, forget it. But you might be lucky.
If you buy an M mount, find correct or best code, send to DAG for coding after you decide image quality is ok.