Mercurial > hgbook
comparison en/examples/filenames @ 133:1e013fbe35f7
Lots of filename related content. A little more command reference
work.
Added a script to make sure commands are exhaustively documented.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 29 Dec 2006 17:54:14 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
132:e1e2f3e0256a | 133:1e013fbe35f7 |
---|---|
1 #!/bin/bash | |
2 | |
3 hg init a | |
4 cd a | |
5 mkdir -p examples src/watcher | |
6 touch COPYING MANIFEST.in README setup.py | |
7 touch examples/performant.py examples/simple.py | |
8 touch src/main.py src/watcher/_watcher.c src/watcher/watcher.py src/xyzzy.txt | |
9 | |
10 #$ name: files | |
11 | |
12 hg add COPYING README examples/simple.py | |
13 | |
14 #$ name: dirs | |
15 | |
16 hg status src | |
17 | |
18 #$ name: wdir-subdir | |
19 | |
20 cd src | |
21 hg add -n | |
22 hg add -n . | |
23 | |
24 #$ name: wdir-relname | |
25 | |
26 hg status | |
27 hg status `hg root` | |
28 | |
29 #$ name: glob.star | |
30 | |
31 hg add 'glob:*.py' | |
32 | |
33 #$ name: glob.starstar | |
34 | |
35 cd .. | |
36 hg status 'glob:**.py' | |
37 | |
38 #$ name: glob.star-starstar | |
39 | |
40 hg status 'glob:*.py' | |
41 hg status 'glob:**.py' | |
42 | |
43 #$ name: glob.question | |
44 | |
45 hg status 'glob:**.?' | |
46 | |
47 #$ name: glob.range | |
48 | |
49 hg status 'glob:**[nr-t]' | |
50 | |
51 #$ name: glob.group | |
52 | |
53 hg status 'glob:*.{in,py}' | |
54 | |
55 #$ name: filter.include | |
56 | |
57 hg status -I '*.in' | |
58 | |
59 #$ name: filter.exclude | |
60 | |
61 hg status -X '**.py' src |