From: Larry McVoy <lm@bitmover.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Brad Campbell <brad@wasp.net.au>,
linux-ide@vger.kernel.org, linxu-kernel@vger.kernel.org,
Larry McVoy <lm@bitmover.com>, Linus Torvalds <torvalds@osdl.org>
Subject: Re: Libata VIA woes continue. Worked around - *wrong*
Date: Mon, 30 Aug 2004 07:45:52 -0700 [thread overview]
Message-ID: <20040830144552.GC16320@work.bitmover.com> (raw)
In-Reply-To: <4131A431.8080409@pobox.com>
> Since BK changesets are ordered as a progression, you can also do a
> bsearch by clone trees to specific changesets, such as
>
> bk changes -rv2.6.6..2.6.7 > /tmp/changes.txt
> # view changes.txt, pick out cset 1.1587.39.1 as your "top of tree"
> bk clone -r1.1587.39.1 vanilla-2.6 brad-test-2.6.6-bk
> # compile and test the kernel in brad-test-2.6.6-bk
A couple of comments:
- BK changesets are not a linear progression, they are in the form of
a graph called a lattice. Getting a path through there that you can
do binary search on is not straightforward.
- The CVS tree represents one such straight path, get just the ChangeSet
file from the CVS tree and do an rlog on it - you are looking for the
lines like:
BKrev: 41316382Cxbyp1_yHDX8LmymGot3Ww
That rev is the "md5key" of the BK rev and can be used anywhere a BK
rev may be used (bk clone -r41316382Cxbyp1_yHDX8LmymGot3Ww ...)
- The biggest time saver is knowing where to look for your bug. If you
knew that the bug was in drivers/scsi/libata-core.c then you could
find each changeset which touched that file like so
$ bk rset -lv2.6.6 | grep drivers/scsi/libata-core.c
drivers/scsi/libata-core.c|1.39
$ bk prs -hnd:I: -r1.39.. drivers/scsi/libata-core.c | while read rev
do bk r2c -r$rev drivers/scsi/libata-core.c
done
That will crunch away and spit out (in this case) 63 revs like
1.1803.1.40
1.1803.1.39
1.1803.1.38
...
and a binary search over those revs is likely to be fair more fruitful
because the history of that one file is pretty linear.
--
---
Larry McVoy lm at bitmover.com http://www.bitkeeper.com
prev parent reply other threads:[~2004-08-30 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-27 13:58 Libata VIA woes continue. Worked around Brad Campbell
2004-08-29 7:32 ` Libata VIA woes continue. Worked around - *wrong* Brad Campbell
2004-08-29 7:57 ` Jeff Garzik
2004-08-29 8:17 ` Brad Campbell
2004-08-29 9:04 ` Jeff Garzik
2004-08-29 9:24 ` Brad Campbell
2004-08-29 9:38 ` Jeff Garzik
2004-08-30 14:45 ` Larry McVoy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040830144552.GC16320@work.bitmover.com \
--to=lm@bitmover.com \
--cc=brad@wasp.net.au \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linxu-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).