An easy reproducible test case is doing "fossil update" while being in a closed branch.