10:233c3d76cc7d
Anton Shestakov <engored@ya.ru>, Fri, 01 Jun 2012 20:27:08 +0900
Added git branch name; bash-fu.

previous change 8:86f2ec90bb93

docs/prompt_screens.sh

Permissions: -rwxr-xr-x

Other formats: Feeds:
#!/bin/sh
set -x
### MERCURIAL: PREPARE COMMIT GRAPH
hg init /tmp/hgrepo && cd /tmp/hgrepo
# revision 0
echo "Haikus are easy" > poem && hg ci --addremove -m "First steps"
# revision 1
echo "Refrigerator" >> poem && hg ci -m "Progress!"
# revision 2, another head
hg up -r 0 && echo "But sometimes they don't make sense" >> poem && hg ci -m "How could I forget?"
### MERCURIAL: DEMONSTRATE
# clean repo at 2: minimal info
hg up -r 2 -C && read
# branch branch branch
hg branch branch && read
# dirty working directory
echo "Roses are red" >> poem && read
# clean, but not up-to-date repo at 1
hg up -C -r 1 && read
# merging
hg merge && read