The ordinances in force in the localities at the time of consolidation, insofar as they are not in conflict with the consolidation agreement, shall be continued in force and effect within the limits of the consolidated localities, subject to repeal or amendment by the governing bodies of the consolidated localities; however, in case of a conflict between the ordinances of localities when the charter of one of them has been retained, the ordinances of the one whose charter has been surrendered shall to the extent of such conflict be void and of no effect. Localities may also provide in the consolidation agreement for an alternative procedure for resolving conflicts between ordinances.
Va. Code § 15.2-3517