comparison en/examples/bisect @ 282:7a6bd93174bd

Update bisect docs
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 31 Dec 2007 20:06:58 -0800
parents cd066590e2e3
children 73b094b764ec d13a05515acf 91adcea08b33
comparison
equal deleted inserted replaced
281:a880d07f2d29 282:7a6bd93174bd
28 done 28 done
29 29
30 #$ name: help 30 #$ name: help
31 31
32 hg help bisect 32 hg help bisect
33 hg bisect help
34 33
35 #$ name: search.init 34 #$ name: search.init
36 35
37 hg bisect init 36 hg bisect --init
38 37
39 #$ name: search.bad-init 38 #$ name: search.bad-init
40 39
41 hg bisect bad 40 hg bisect --bad
42 41
43 #$ name: search.good-init 42 #$ name: search.good-init
44 43
45 hg bisect good 10 44 hg bisect --good 10
46 45
47 #$ name: search.step1 46 #$ name: search.step1
48 47
49 if grep -q 'i have a gub' * 48 if grep -q 'i have a gub' *
50 then 49 then
52 else 51 else
53 result=good 52 result=good
54 fi 53 fi
55 54
56 echo this revision is $result 55 echo this revision is $result
57 hg bisect $result 56 hg bisect --$result
58 57
59 #$ name: search.mytest 58 #$ name: search.mytest
60 59
61 mytest() { 60 mytest() {
62 if grep -q 'i have a gub' * 61 if grep -q 'i have a gub' *
65 else 64 else
66 result=good 65 result=good
67 fi 66 fi
68 67
69 echo this revision is $result 68 echo this revision is $result
70 hg bisect $result 69 hg bisect --$result
71 } 70 }
72 71
73 #$ name: search.step2 72 #$ name: search.step2
74 73
75 mytest 74 mytest
80 mytest 79 mytest
81 mytest 80 mytest
82 81
83 #$ name: search.reset 82 #$ name: search.reset
84 83
85 hg bisect reset 84 hg bisect --reset
86 85
87 #$ name: 86 #$ name:
88 87
89 exit 0 88 exit 0