$ hg branch foo marked working directory as branch foo $ hg branch foo