hgbook

annotate en/examples/daily.files @ 109:1b67dc96f27a

Snapshot of concepts chapter.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri Nov 10 12:42:00 2006 -0800 (2006-11-10)
parents 7ac85766db0f
children 6b0f4498569e
rev   line source
bos@47 1 #!/bin/bash
bos@47 2
bos@43 3 #$ name: add
bos@42 4
bos@42 5 hg init a
bos@42 6 cd a
bos@42 7 echo content > filename
bos@42 8 mkdir subdir
bos@42 9 echo something > subdir/otherfile
bos@42 10 hg status
bos@42 11
bos@42 12 #$ name: hidden
bos@42 13
bos@42 14 mkdir empty
bos@42 15 touch empty/.hidden
bos@42 16 hg add empty/.hidden
bos@42 17 hg commit -m 'Manage an empty-looking directory'
bos@42 18 ls empty
bos@42 19 cd ..
bos@42 20 hg clone a b
bos@42 21 ls b
bos@42 22 ls b/empty