hgbook

annotate en/examples/daily.files @ 79:53427f786a0f

Make run-example time out if shell seems to get stuck.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Sep 04 14:31:17 2006 -0700 (2006-09-04)
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