Mercurial Phases: Prevent Accidental History Rewrites with Draft, Public, and Secret
Mercurial's phases system prevents accidental history rewriting by classifying changesets as public, draft, or secret. This guide explains the mechanism with a worked example, configuration, and common mistakes.