annotate en/examples/ch04/diff @ 810:1a0a78e197c3

Incorporate feedback from Greg Lindahl.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 24 Apr 2009 00:27:05 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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