Have some reservations about the motor in the 72 frame......spidery sense twitching..........
Your engine side case has gear No's stamped into the side cover...........Yes later engine side-covers did interchange with the 72.........Why i have reservations relates to the paragraph about the side cover differences
Early motors from 70-73
didn't have the gears no's stamped onto the engine side cover......that started in 74.........All pics are off different bikes
72, Brochure and pics

73, brochure, (bit hard to see), and pics

74, Brochure and pics....Can see the gear no's stamped on the side case
Around the year 75 the engine Cases and side-covers had a modification and where the chain-guard front sprocket area was covers the cases and engine side-cover changed from a square edge to a round edge.

Comprehensive threads about this........Second thread goes into this as well with some updated info
http://www.xs650.com/threads/left-hand-engine-covers.32250/
http://www.xs650.com/threads/oiler-hole-in-sprocket-side-case-cover.52932/#post-562414
Pics show where the side case meets the cases and the fit..........
72................................................73..............................................74


In your pic it looks like the engine side case fits the engine cases........Bit hard to see so its worth a look so, check the engine case where the edge of the side case meets the cases........if your engine cases are round like the engine side case then it may be a later one...... No's can be changed.........This is critical when or if ordering engine parts.........
A couple of links regarding early frames/Motors and the interchangeability of the motors/Frames for later yaers and differences
http://www.xs650.com/threads/engine-interchange.50643/#post-526238
http://www.xs650.com/threads/xs1-engine-mounts.47629/