Add option to use stages for repo management instead of anchors