This patch enable the possibility to switch a file with a different number of step in the ancestors