Mercurial > hgbook
comparison ja/examples/bisect @ 834:896ab6eaf1c6
merged
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 10 Jul 2009 02:32:17 +0900 |
parents | en/examples/bisect@7226e5e750a6 en/examples/bisect@019040fbf5f5 |
children |
comparison
equal
deleted
inserted
replaced
803:5276f40fca1c | 834:896ab6eaf1c6 |
---|---|
35 | 35 |
36 hg help bisect | 36 hg help bisect |
37 | 37 |
38 #$ name: search.init | 38 #$ name: search.init |
39 | 39 |
40 hg bisect init | 40 hg bisect --reset |
41 | 41 |
42 #$ name: search.bad-init | 42 #$ name: search.bad-init |
43 | 43 |
44 hg bisect bad | 44 hg bisect --bad |
45 | 45 |
46 #$ name: search.good-init | 46 #$ name: search.good-init |
47 | 47 |
48 hg bisect good 10 | 48 hg bisect --good 10 |
49 | 49 |
50 #$ name: search.step1 | 50 #$ name: search.step1 |
51 | 51 |
52 if grep -q 'i have a gub' * | 52 if grep -q 'i have a gub' * |
53 then | 53 then |
68 else | 68 else |
69 result=good | 69 result=good |
70 fi | 70 fi |
71 | 71 |
72 echo this revision is $result | 72 echo this revision is $result |
73 hg bisect $result | 73 hg bisect --$result |
74 } | 74 } |
75 | 75 |
76 #$ name: search.step2 | 76 #$ name: search.step2 |
77 | 77 |
78 mytest | 78 mytest |
83 mytest | 83 mytest |
84 mytest | 84 mytest |
85 | 85 |
86 #$ name: search.reset | 86 #$ name: search.reset |
87 | 87 |
88 hg bisect reset | 88 hg bisect --reset |
89 | 89 |
90 #$ name: | 90 #$ name: |
91 | 91 |
92 exit 0 | 92 exit 0 |