A court has heard how a man involved in a long-running dispute with a neighbour chased him with a machete after a confrontation in the street.