##// END OF EJS Templates
Don't require a diff which accepts the -N option.
Thomas Arendsen Hein -
r3751:797c6e70 default
parent child Browse files
Show More
@@ -1,38 +1,34 b''
1 1 #!/bin/sh
2 2
3 3 echo "[extensions]" >> $HGRCPATH
4 4 echo "extdiff=" >> $HGRCPATH
5 5
6 6 hg init a
7 7 cd a
8 8 echo a > a
9 9 hg add
10 diff -N /dev/null /dev/null 2> /dev/null
11 if [ $? -ne 0 ]; then
12 opt="-p gdiff"
13 fi
14 hg extdiff -o -Nr $opt
10 hg extdiff -o -r $opt
15 11
16 12 echo "[extdiff]" >> $HGRCPATH
17 13 echo "cmd.falabala=echo" >> $HGRCPATH
18 14 echo "opts.falabala=diffing" >> $HGRCPATH
19 15
20 16 hg falabala
21 17
22 18 hg help falabala
23 19
24 20 hg ci -d '0 0' -mtest1
25 21
26 22 echo b >> a
27 23 hg ci -d '1 0' -mtest2
28 24
29 25 hg falabala -r 0:1
30 26
31 27 # test diff during merge
32 28 hg update 0
33 29 echo b >> b
34 30 hg add b
35 31 hg ci -m "new branch" -d '1 0'
36 32 hg update -C 1
37 33 hg merge tip
38 34 hg falabala || echo "diff-like tools yield a non-zero exit code"
@@ -1,39 +1,37 b''
1 1 adding a
2 2 making snapshot of 0 files from rev 000000000000
3 3 making snapshot of 1 files from working dir
4 diff -Nr a.000000000000/a a/a
5 0a1
6 > a
4 Only in a: a
7 5 making snapshot of 0 files from rev 000000000000
8 6 making snapshot of 1 files from working dir
9 7 diffing a.000000000000 a
10 8 hg falabala [OPT]... [FILE]...
11 9
12 10 use 'echo' to diff repository (or selected files)
13 11
14 12 Show differences between revisions for the specified
15 13 files, using the 'echo' program.
16 14
17 15 When two revision arguments are given, then changes are
18 16 shown between those revisions. If only one revision is
19 17 specified then that revision is compared to the working
20 18 directory, and, when no revisions are specified, the
21 19 working directory files are compared to its parent.
22 20
23 21 options:
24 22
25 23 -o --option pass option to comparison program
26 24 -r --rev revision
27 25 -I --include include names matching the given patterns
28 26 -X --exclude exclude names matching the given patterns
29 27 making snapshot of 1 files from rev e27a2475d60a
30 28 making snapshot of 1 files from rev 5e49ec8d3f05
31 29 diffing a.e27a2475d60a a.5e49ec8d3f05
32 30 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
33 31 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
34 32 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
35 33 (branch merge, don't forget to commit)
36 34 making snapshot of 1 files from rev 5e49ec8d3f05
37 35 making snapshot of 1 files from working dir
38 36 diffing a.5e49ec8d3f05 a
39 37 diff-like tools yield a non-zero exit code
General Comments 0
You need to be logged in to leave comments. Login now