Mercurial > hgbook
annotate en/examples/ch04/diff @ 838:d1f676a6a4b3 default tip
update mq chapter.
propagate ef53d025f410.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 03 Dec 2009 01:26:08 +0900 |
parents | 1a0a78e197c3 |
children |
rev | line source |
---|---|
810
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
1 #!/bin/bash |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
2 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
3 hg init a |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
4 cd a |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
5 echo a > a |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
6 hg ci -Ama |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
7 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
8 #$ name: rename.basic |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
9 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
10 hg rename a b |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
11 hg diff |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
12 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
13 #$ name: rename.git |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
14 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
15 hg diff -g |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
16 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
17 #$ name: |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
18 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
19 hg revert -a |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
20 rm b |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
21 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
22 #$ name: chmod |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
23 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
24 chmod +x a |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
25 hg st |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
26 hg diff |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
27 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
28 #$ name: chmod.git |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
29 |
1a0a78e197c3
Incorporate feedback from Greg Lindahl.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
30 hg diff -g |