evolve: fix the inconsistent behaviour of prune (issue6137)
Let's not update to any revision when working directory parent
is not related to the revision being pruned.
Changes in test file demonstrate the fixed behaviour.
# name space package to host third party extensionsfrom__future__importabsolute_importimportpkgutil__path__=pkgutil.extend_path(__path__,__name__)