Mercurial > hgbook
comparison en/examples/bisect @ 807:7226e5e750a6
Clean up chapter 8, and add content
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 21 Apr 2009 23:49:27 -0700 |
parents | b08f6a61bf15 |
children |
comparison
equal
deleted
inserted
replaced
806:06458701453c | 807:7226e5e750a6 |
---|---|
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 |