As pointed out Ecclefechan is in Hoddom, which is an Annandale Parish, with an east-west segment of the River Annan around its south boundary - look for Hoddom Castle on a map - and Ecclefechan is in the north-east corner (up against the A74).
It has a history of in-migrations, including millworkers at one point in the 19th century, travellers at another period, and in the 20th century a council estate that took people in from other areas.
So it is strikingly unlike a lot of other villages in having a very diverse community. So judging from some of the feedback above it might not be so unusual to have someone from Aberdeenshire also being recorded in Hoddom.
The main 18th-19th century graveyard is at Hoddom Cross, nearly 2 km south-west, the MIs from that might be useful