##// END OF EJS Templates
Merge with TAH...
mpm@selenic.com -
r306:f06a4a3b merge default
parent child Browse files
Show More
@@ -11,6 +11,8 b' LOCAL=$1'
11 BASE=$2
11 BASE=$2
12 OTHER=$3
12 OTHER=$3
13
13
14 EDITOR="${EDITOR:-vi}"
15
14 # Back up our file
16 # Back up our file
15 cp $LOCAL $LOCAL.orig
17 cp $LOCAL $LOCAL.orig
16
18
@@ -29,21 +31,23 b' elif which diff3 > /dev/null ; then'
29 cp $LOCAL.orig $LOCAL
31 cp $LOCAL.orig $LOCAL
30 fi
32 fi
31
33
32 # try using kdiff3, which is fairly nice
34 if [ -n "$DISPLAY" ]; then
33 if which kdiff3 > /dev/null ; then
35 # try using kdiff3, which is fairly nice
34 if kdiff3 --auto $BASE $LOCAL $OTHER -o $LOCAL ; then
36 if which kdiff3 > /dev/null ; then
35 exit 0
37 if kdiff3 --auto $BASE $LOCAL $OTHER -o $LOCAL ; then
36 else
38 exit 0
37 exit 1
39 else
40 exit 1
41 fi
38 fi
42 fi
39 fi
40
43
41 # try using tkdiff, which is a bit less sophisticated
44 # try using tkdiff, which is a bit less sophisticated
42 if which tkdiff > /dev/null ; then
45 if which tkdiff > /dev/null ; then
43 if tkdiff $LOCAL $OTHER -a $BASE -o $LOCAL ; then
46 if tkdiff $LOCAL $OTHER -a $BASE -o $LOCAL ; then
44 exit 0
47 exit 0
45 else
48 else
46 exit 1
49 exit 1
50 fi
47 fi
51 fi
48 fi
52 fi
49
53
General Comments 0
You need to be logged in to leave comments. Login now