A church court that sat within the presbytery of Edinburgh and the synod of Lothian and Tweeddale. It became a chapel of ease in 1818 and was made a quoad sacra parish in 1861.