hgbook

diff en/examples/ch04/diff @ 683:1a0a78e197c3

Incorporate feedback from Greg Lindahl.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri Apr 24 00:27:05 2009 -0700 (2009-04-24)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/en/examples/ch04/diff	Fri Apr 24 00:27:05 2009 -0700
     1.3 @@ -0,0 +1,30 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +hg init a
     1.7 +cd a
     1.8 +echo a > a
     1.9 +hg ci -Ama
    1.10 +
    1.11 +#$ name: rename.basic
    1.12 +
    1.13 +hg rename a b
    1.14 +hg diff
    1.15 +
    1.16 +#$ name: rename.git
    1.17 +
    1.18 +hg diff -g
    1.19 +
    1.20 +#$ name:
    1.21 +
    1.22 +hg revert -a
    1.23 +rm b
    1.24 +
    1.25 +#$ name: chmod
    1.26 +
    1.27 +chmod +x a
    1.28 +hg st
    1.29 +hg diff
    1.30 +
    1.31 +#$ name: chmod.git
    1.32 +
    1.33 +hg diff -g