hgbook

annotate en/examples/daily.copy @ 272:74c079e0051f

Account for change in bisect output.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Nov 26 11:18:46 2007 -0800 (2007-11-26)
parents b252526b44aa
children 477d6a3e5023
rev   line source
bos@119 1 #!/bin/bash
bos@119 2
bos@119 3 #$ name: init
bos@119 4
bos@119 5 hg init my-copy
bos@119 6 cd my-copy
bos@119 7 echo line > file
bos@119 8 hg add file
bos@119 9 hg commit -m 'Added a file'
bos@119 10
bos@119 11 #$ name: clone
bos@119 12
bos@119 13 cd ..
bos@119 14 hg clone my-copy your-copy
bos@119 15
bos@119 16 #$ name: copy
bos@119 17
bos@119 18 cd my-copy
bos@119 19 hg copy file new-file
bos@119 20
bos@119 21 #$ name: status
bos@119 22
bos@119 23 hg status
bos@119 24
bos@119 25 #$ name: status-copy
bos@119 26
bos@119 27 hg status -C
bos@119 28 hg commit -m 'Copied file'
bos@119 29
bos@119 30 #$ name: other
bos@119 31
bos@119 32 cd ../your-copy
bos@119 33 echo 'new contents' >> file
bos@119 34 hg commit -m 'Changed file'
bos@119 35
bos@119 36 #$ name: cat
bos@119 37
bos@119 38 cat file
bos@119 39 cat ../my-copy/new-file
bos@119 40
bos@119 41 #$ name: merge
bos@119 42
bos@119 43 hg pull ../my-copy
bos@119 44 hg merge
bos@119 45 cat new-file
bos@119 46
bos@119 47 #$ name:
bos@119 48
bos@119 49 cd ..
bos@119 50 hg init copy-example
bos@119 51 cd copy-example
bos@119 52 echo a > a
bos@119 53 echo b > b
bos@119 54 mkdir c
bos@119 55 mkdir c/a
bos@119 56 echo c > c/a/c
bos@119 57 hg ci -Ama
bos@119 58
bos@119 59 #$ name: simple
bos@119 60
bos@183 61 mkdir k
bos@183 62 hg copy a k
bos@183 63 ls k
bos@119 64
bos@119 65 #$ name: dir-dest
bos@119 66
bos@119 67 mkdir d
bos@119 68 hg copy a b d
bos@119 69 ls d
bos@119 70
bos@119 71 #$ name: dir-src
bos@119 72
bos@119 73 hg copy c e
bos@119 74
bos@119 75 #$ name: dir-src-dest
bos@119 76
bos@119 77 hg copy c d
bos@119 78
bos@119 79 #$ name: after
bos@119 80
bos@119 81 cp a z
bos@119 82 hg copy --after a z