view en/examples/branch-named @ 203:d7615e15510f

More about named branches, and early use of them.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 20 Apr 2007 14:35:39 -0700
parents 6f167e644762
children 6519f3b983b4
line wrap: on
line source

#!/bin/bash

hg init a
cd a
echo hello > myfile
hg commit -A -m 'Initial commit'

#$ name: branches

hg tip
hg branches

#$ name: branch

hg branch

#$ name: create

hg branch foo
hg branch

#$ name: status

hg status
hg tip

#$ name: commit

echo 'hello again' >> myfile
hg commit -m 'Second commit'
hg tip