Old Thermostat with just R and Y wires?
Old-style 2-wire thermostats are, de-facto, switches and switches doesn't have an 'order'. In new stat, if it is battery powered, is the same. In any case just connect R(H) and common (W). Anyway, if you wire the new stat wrong-way, worst case scenario is stat not working (no risk of rupture)