hgbook

view en/examples/branch-named @ 713:f87515a4a3cf

Remove dead symbolic links

for i in `find .`; do if (test -h $i); then file $i|grep broken; fi; done

./es/99book.bib: broken symbolic link to `../en/99book.bib'
./es/bookhtml.cfg: broken symbolic link to `../en/bookhtml.cfg'
./es/fixhtml.py: broken symbolic link to `../en/fixhtml.py'
./es/hgbook.css: broken symbolic link to `../en/hgbook.css'
./es/htlatex.book: broken symbolic link to `../en/htlatex.book'
author Dongsheng Song <dongsheng.song@gmail.com>
date Thu May 21 14:26:31 2009 +0800 (2009-05-21)
parents 6519f3b983b4
children
line source
1 #!/bin/bash
3 hg init a
4 cd a
5 echo hello > myfile
6 hg commit -A -m 'Initial commit'
8 #$ name: branches
10 hg tip
11 hg branches
13 #$ name: branch
15 hg branch
17 #$ name: create
19 hg branch foo
20 hg branch
22 #$ name: status
24 hg status
25 hg tip
27 #$ name: commit
29 echo 'hello again' >> myfile
30 hg commit -m 'Second commit'
31 hg tip
33 #$ name: rebranch
35 hg branch
36 hg branch bar
37 echo new file > newfile
38 hg commit -A -m 'Third commit'
39 hg tip
41 #$ name: parents
43 hg parents
44 hg branches
46 #$ name: update-switchy
48 hg update foo
49 hg parents
50 hg update bar
51 hg parents
53 #$ name: update-nothing
55 hg update foo
56 hg update
58 #$ name: foo-commit
60 echo something > somefile
61 hg commit -A -m 'New file'
62 hg heads
64 #$ name: update-bar
66 hg update bar
68 #$ name: merge
70 hg branch
71 hg merge foo
72 hg commit -m 'Merge'
73 hg tip