diff options
| author | Joakim Verona | 2013-02-18 00:04:31 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-02-18 00:04:31 +0100 |
| commit | 37bce6bfacc0508a0c5016be3bfca92a81a59fe0 (patch) | |
| tree | c0967967d0810670d1154c8a5b3a4a3521179660 /admin | |
| parent | bcd8c34aabe11e72a0ce35f654515e2bb9c2964b (diff) | |
| parent | a51e9ff76cc887e0e6df95ff2895d80e0c00e9b9 (diff) | |
| download | emacs-37bce6bfacc0508a0c5016be3bfca92a81a59fe0.tar.gz emacs-37bce6bfacc0508a0c5016be3bfca92a81a59fe0.zip | |
auto upstream
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/notes/bzr | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/admin/notes/bzr b/admin/notes/bzr index cdcfa7e7e3d..f35ff95f9d6 100644 --- a/admin/notes/bzr +++ b/admin/notes/bzr | |||
| @@ -267,3 +267,52 @@ For example, on RHEL6 I needed: | |||
| 267 | yum --enablerepo=epel install python-simpletal | 267 | yum --enablerepo=epel install python-simpletal |
| 268 | 268 | ||
| 269 | Then point your web-browser to http://127.0.0.1:8080/ . | 269 | Then point your web-browser to http://127.0.0.1:8080/ . |
| 270 | |||
| 271 | * Bisecting | ||
| 272 | |||
| 273 | This is a semi-automated way to find the revision that introduced a bug. | ||
| 274 | |||
| 275 | First, get the bzr bisect plugin if you do not have it already: | ||
| 276 | |||
| 277 | cd ~/.bazaar/plugins | ||
| 278 | bzr branch lp:bzr-bisect bisect | ||
| 279 | |||
| 280 | `bzr help bisect' should work now. | ||
| 281 | |||
| 282 | It's probably simplest to make a new copy of the branch to work in | ||
| 283 | from this point onwards. | ||
| 284 | |||
| 285 | Identify the last known "good" revision where the relevant issue is | ||
| 286 | NOT present (e.g. maybe Emacs 24.1). Let's say this is revision 1000. | ||
| 287 | |||
| 288 | bzr bisect start | ||
| 289 | bzr bisect no -r 1000 | ||
| 290 | |||
| 291 | At this point, bzr will switch to the mid-point of revision 1000 and | ||
| 292 | the current revision. If you know that the issue was definitely | ||
| 293 | present in some specific revision (say 2000), you can use: | ||
| 294 | |||
| 295 | bzr bisect yes -r 2000 | ||
| 296 | |||
| 297 | Now bzr switches to revision 1500. | ||
| 298 | |||
| 299 | Now test whether the issue is present. You might need to rebuild | ||
| 300 | Emacs to do this, or if you know the problem is in a specific Lisp | ||
| 301 | file, you might be able to get away with just loading that one file in | ||
| 302 | current Emacs. | ||
| 303 | |||
| 304 | If the issue is present, use | ||
| 305 | |||
| 306 | bzr bisect yes | ||
| 307 | |||
| 308 | If it is not, use | ||
| 309 | |||
| 310 | bzr bisect no | ||
| 311 | |||
| 312 | Repeat until you zero-in on the specific revision. | ||
| 313 | |||
| 314 | When finished, use | ||
| 315 | |||
| 316 | bzr bisect reset | ||
| 317 | |||
| 318 | or simply delete the entire branch if you created it just for this. | ||