Yeah, I think M 50mm f1.7 all the way to DA 50mm f1.8 have the same optical design. Now, this doesn't mean its the exact same lens. For example, regulations on materials change over time, factories and machining technologies change, employees and workers change, and finally lens coatings change as well. So I do believe when people say the DA has the best flare resistance, and the F is the sharpest (but loudest AF). And they might even have different contrast and slightly different bokeh. But the differences between them will be much smaller than in comparison with.. lets say Sigma 50mm f1.4 or Industar 50-2 (f3.5)
Keep in mind that even something as little as changing metal straight aperture blades for plastic rounded aperture blades will affect the image, in terms of bokeh, starbursts, contrast.. and I think the DA 50mm has rounded aperture blades, right? I know my M 50mm f1.7 would produce quite different bokeh because of its aperture shape:
Cosmic fly sitting on a tree - Pentax M 50mm f1.7, around f2, f2,8. Dark conditions, very high ISO
The above photo would have a very different look if the lens had rounded aperture blades. Those OoF star-like hexagons would be round.