hgbook

annotate es/examples/daily.files @ 429:e5c5918e8230

Started translation of cgi configuration section
author Igor TAmara <igor@tamarapatino.org>
date Sat Nov 29 19:46:33 2008 -0500 (2008-11-29)
parents
children
rev   line source
igor@333 1 #!/bin/bash
igor@333 2
igor@333 3 #$ name: add
igor@333 4
igor@333 5 hg init add-example
igor@333 6 cd add-example
igor@333 7 echo a > a
igor@333 8 hg status
igor@333 9 hg add a
igor@333 10 hg status
igor@333 11 hg commit -m 'Added one file'
igor@333 12 hg status
igor@333 13
igor@333 14 #$ name: add-dir
igor@333 15
igor@333 16 mkdir b
igor@333 17 echo b > b/b
igor@333 18 echo c > b/c
igor@333 19 mkdir b/d
igor@333 20 echo d > b/d/d
igor@333 21 hg add b
igor@333 22 hg commit -m 'Added all files in subdirectory'
igor@333 23
igor@333 24 #$ name:
igor@333 25
igor@333 26 cd ..
igor@333 27
igor@333 28 #$ name: hidden
igor@333 29
igor@333 30 hg init hidden-example
igor@333 31 cd hidden-example
igor@333 32 mkdir empty
igor@333 33 touch empty/.hidden
igor@333 34 hg add empty/.hidden
igor@333 35 hg commit -m 'Manage an empty-looking directory'
igor@333 36 ls empty
igor@333 37 cd ..
igor@333 38 hg clone hidden-example tmp
igor@333 39 ls tmp
igor@333 40 ls tmp/empty
igor@333 41
igor@333 42 #$ name: remove
igor@333 43
igor@333 44 hg init remove-example
igor@333 45 cd remove-example
igor@333 46 echo a > a
igor@333 47 mkdir b
igor@333 48 echo b > b/b
igor@333 49 hg add a b
igor@333 50 hg commit -m 'Small example for file removal'
igor@333 51 hg remove a
igor@333 52 hg status
igor@333 53 hg remove b
igor@333 54
igor@333 55 #$ name:
igor@333 56
igor@333 57 cd ..
igor@333 58
igor@333 59 #$ name: missing
igor@333 60 hg init missing-example
igor@333 61 cd missing-example
igor@333 62 echo a > a
igor@333 63 hg add a
igor@333 64 hg commit -m 'File about to be missing'
igor@333 65 rm a
igor@333 66 hg status
igor@333 67
igor@333 68 #$ name: remove-after
igor@333 69
igor@333 70 hg remove --after a
igor@333 71 hg status
igor@333 72
igor@333 73 #$ name: recover-missing
igor@333 74 hg revert a
igor@333 75 cat a
igor@333 76 hg status
igor@333 77
igor@333 78 #$ name:
igor@333 79
igor@333 80 cd ..
igor@333 81
igor@333 82 #$ name: addremove
igor@333 83
igor@333 84 hg init addremove-example
igor@333 85 cd addremove-example
igor@333 86 echo a > a
igor@333 87 echo b > b
igor@333 88 hg addremove
igor@333 89
igor@333 90 #$ name: commit-addremove
igor@333 91
igor@333 92 echo c > c
igor@333 93 hg commit -A -m 'Commit with addremove'