Section 145 of the Code authorizes the Executive Magistrate to take cognizance of the dispute and settle the same by holding an enquiry into possession as distinguished from the right to possession or title.