hgbook
annotate en/examples/filenames @ 998:9d32b10fdb1e
updating .hgignore to ignore the same files other translation ignores
author | Romain PELISSE <belaran@gmail.com> |
---|---|
date | Sat Sep 12 20:52:35 2009 +0200 (2009-09-12) |
parents | |
children |
rev | line source |
---|---|
bos@133 | 1 #!/bin/bash |
bos@133 | 2 |
bos@133 | 3 hg init a |
bos@133 | 4 cd a |
bos@133 | 5 mkdir -p examples src/watcher |
bos@133 | 6 touch COPYING MANIFEST.in README setup.py |
bos@133 | 7 touch examples/performant.py examples/simple.py |
bos@133 | 8 touch src/main.py src/watcher/_watcher.c src/watcher/watcher.py src/xyzzy.txt |
bos@133 | 9 |
bos@133 | 10 #$ name: files |
bos@133 | 11 |
bos@133 | 12 hg add COPYING README examples/simple.py |
bos@133 | 13 |
bos@133 | 14 #$ name: dirs |
bos@133 | 15 |
bos@133 | 16 hg status src |
bos@133 | 17 |
bos@133 | 18 #$ name: wdir-subdir |
bos@133 | 19 |
bos@133 | 20 cd src |
bos@133 | 21 hg add -n |
bos@133 | 22 hg add -n . |
bos@133 | 23 |
bos@133 | 24 #$ name: wdir-relname |
bos@133 | 25 |
bos@133 | 26 hg status |
bos@133 | 27 hg status `hg root` |
bos@133 | 28 |
bos@133 | 29 #$ name: glob.star |
bos@133 | 30 |
bos@133 | 31 hg add 'glob:*.py' |
bos@133 | 32 |
bos@133 | 33 #$ name: glob.starstar |
bos@133 | 34 |
bos@133 | 35 cd .. |
bos@133 | 36 hg status 'glob:**.py' |
bos@133 | 37 |
bos@133 | 38 #$ name: glob.star-starstar |
bos@133 | 39 |
bos@133 | 40 hg status 'glob:*.py' |
bos@133 | 41 hg status 'glob:**.py' |
bos@133 | 42 |
bos@133 | 43 #$ name: glob.question |
bos@133 | 44 |
bos@133 | 45 hg status 'glob:**.?' |
bos@133 | 46 |
bos@133 | 47 #$ name: glob.range |
bos@133 | 48 |
bos@133 | 49 hg status 'glob:**[nr-t]' |
bos@133 | 50 |
bos@133 | 51 #$ name: glob.group |
bos@133 | 52 |
bos@133 | 53 hg status 'glob:*.{in,py}' |
bos@133 | 54 |
bos@133 | 55 #$ name: filter.include |
bos@133 | 56 |
bos@133 | 57 hg status -I '*.in' |
bos@133 | 58 |
bos@133 | 59 #$ name: filter.exclude |
bos@133 | 60 |
bos@133 | 61 hg status -X '**.py' src |