public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux.bkbits.net question: mapping cset to kernel version?
@ 2005-05-18 14:11 Timur Tabi
  2005-05-18 15:00 ` Hugh Dickins
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Timur Tabi @ 2005-05-18 14:11 UTC (permalink / raw)
  To: linux-kernel

Given a particular file and a particular bitkeeper revision for the file, how can I tell 
which version of the kernel incorporated that changeset?

In particular, I want to know about revision 1.65 of mm/rmap.c, which can be seen at 
http://linux.bkbits.net:8080/linux-2.6/diffs/mm/rmap.c@1.65?nav=index.html|src/|src/mm|hist/mm/rmap.c

I want to know what the first version of Linux is to incorporate that change.

And please don't tell me to do a diff on all the 2.6 versions, because that's not efficient.

-- 
Timur Tabi
Staff Software Engineer
timur.tabi@ammasso.com

One thing a Southern boy will never say is,
"I don't think duct tape will fix it."
      -- Ed Smylie, NASA engineer for Apollo 13

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux.bkbits.net question: mapping cset to kernel version?
  2005-05-18 14:11 linux.bkbits.net question: mapping cset to kernel version? Timur Tabi
@ 2005-05-18 15:00 ` Hugh Dickins
  2005-05-18 15:01   ` Timur Tabi
  2005-05-18 16:09 ` Greg KH
  2005-05-18 16:36 ` patrick mcmanus
  2 siblings, 1 reply; 9+ messages in thread
From: Hugh Dickins @ 2005-05-18 15:00 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linux-kernel

On Wed, 18 May 2005, Timur Tabi wrote:

> Given a particular file and a particular bitkeeper revision for the file, how
> can I tell which version of the kernel incorporated that changeset?

Someone else might answer that.

> In particular, I want to know about revision 1.65 of mm/rmap.c, which can be
> seen at
> http://linux.bkbits.net:8080/linux-2.6/diffs/mm/rmap.c@1.65?nav=index.html|src/|src/mm|hist/mm/rmap.c
> 
> I want to know what the first version of Linux is to incorporate that change.

The first mainline version of Linux to incorporate it was 2.6.7-rc3
(SuSE, and the -mm tree, had it earlier).

Hugh

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux.bkbits.net question: mapping cset to kernel version?
  2005-05-18 15:00 ` Hugh Dickins
@ 2005-05-18 15:01   ` Timur Tabi
  2005-05-18 15:14     ` Hugh Dickins
  0 siblings, 1 reply; 9+ messages in thread
From: Timur Tabi @ 2005-05-18 15:01 UTC (permalink / raw)
  To: Hugh Dickins; +Cc: linux-kernel

Hugh Dickins wrote:

> The first mainline version of Linux to incorporate it was 2.6.7-rc3
> (SuSE, and the -mm tree, had it earlier).

How did you know that?

-- 
Timur Tabi
Staff Software Engineer
timur.tabi@ammasso.com

One thing a Southern boy will never say is,
"I don't think duct tape will fix it."
      -- Ed Smylie, NASA engineer for Apollo 13

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux.bkbits.net question: mapping cset to kernel version?
  2005-05-18 15:01   ` Timur Tabi
@ 2005-05-18 15:14     ` Hugh Dickins
  0 siblings, 0 replies; 9+ messages in thread
From: Hugh Dickins @ 2005-05-18 15:14 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linux-kernel

On Wed, 18 May 2005, Timur Tabi wrote:
> Hugh Dickins wrote:
> 
> > The first mainline version of Linux to incorporate it was 2.6.7-rc3
> > (SuSE, and the -mm tree, had it earlier).
> 
> How did you know that?

I know the patch because it went from Andrea to me to Andrew to Linus.

I have a copy of the 2.6.N trees here on my laptop so can quickly
verify my recollection that the first 2.6.N it appeared in was 2.6.7.

Then I searched through each ChangeLog-2.6.7-rcN at
http://ftp.kernel.org/pub/linux/kernel/v2.6/testing/
for comments on get_user_pages.

Hugh

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux.bkbits.net question: mapping cset to kernel version?
  2005-05-18 14:11 linux.bkbits.net question: mapping cset to kernel version? Timur Tabi
  2005-05-18 15:00 ` Hugh Dickins
@ 2005-05-18 16:09 ` Greg KH
  2005-05-18 16:23   ` Timur Tabi
  2005-05-18 16:36 ` patrick mcmanus
  2 siblings, 1 reply; 9+ messages in thread
From: Greg KH @ 2005-05-18 16:09 UTC (permalink / raw)
  To: linux-kernel

On Wed, May 18, 2005 at 09:11:32AM -0500, Timur Tabi wrote:
> Given a particular file and a particular bitkeeper revision for the file, 
> how can I tell which version of the kernel incorporated that changeset?
> 
> In particular, I want to know about revision 1.65 of mm/rmap.c, which can 
> be seen at 
> http://linux.bkbits.net:8080/linux-2.6/diffs/mm/rmap.c@1.65?nav=index.html|src/|src/mm|hist/mm/rmap.c
> 
> I want to know what the first version of Linux is to incorporate that 
> change.
> 
> And please don't tell me to do a diff on all the 2.6 versions, because 
> that's not efficient.

But that's how you have to do it, sorry.  You have the patches, why
can't you just use grep?  :)

Good luck,

greg k-h

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux.bkbits.net question: mapping cset to kernel version?
  2005-05-18 16:09 ` Greg KH
@ 2005-05-18 16:23   ` Timur Tabi
  2005-05-18 16:51     ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Timur Tabi @ 2005-05-18 16:23 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

Greg KH wrote:

> But that's how you have to do it, sorry.  You have the patches, why
> can't you just use grep?  :)

What does Linus do to keep track of these changes?  Granted, he's not using BitKeeper any 
more, but it does support release management, so I would presume he was tagging the 
releases with it.  What does he do now?

-- 
Timur Tabi
Staff Software Engineer
timur.tabi@ammasso.com

One thing a Southern boy will never say is,
"I don't think duct tape will fix it."
      -- Ed Smylie, NASA engineer for Apollo 13

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux.bkbits.net question: mapping cset to kernel version?
  2005-05-18 14:11 linux.bkbits.net question: mapping cset to kernel version? Timur Tabi
  2005-05-18 15:00 ` Hugh Dickins
  2005-05-18 16:09 ` Greg KH
@ 2005-05-18 16:36 ` patrick mcmanus
  2 siblings, 0 replies; 9+ messages in thread
From: patrick mcmanus @ 2005-05-18 16:36 UTC (permalink / raw)
  To: linux-kernel

On Wed, 2005-05-18 at 10:11, Timur Tabi wrote:
> Given a particular file and a particular bitkeeper revision for the file, how can I tell 
> which version of the kernel incorporated that changeset?
> 
> In particular, I want to know about revision 1.65 of mm/rmap.c, which can be seen at 
> http://linux.bkbits.net:8080/linux-2.6/diffs/mm/rmap.c@1.65?nav=index.html|src/|src/mm|hist/mm/rmap.c
> 
> I want to know what the first version of Linux is to incorporate that change.
> 

The most pragmatic thing to do is to take the comment from the
changeset, which in this case is "mm: get_user_pages vs. try_to_unmap" 
and plop that into google as "changelog mm: get_user_pages vs.
try_to_unmap".. and that will point you very quickly to the right
release changelog that includes it, because the changelogs are generally
driven right from the comments.. in this case

 http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.7-rc3

While this isn't scientific - it has a very high success rate and is
easy as pi..



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux.bkbits.net question: mapping cset to kernel version?
  2005-05-18 16:23   ` Timur Tabi
@ 2005-05-18 16:51     ` Greg KH
  2005-05-18 23:13       ` Linus Torvalds
  0 siblings, 1 reply; 9+ messages in thread
From: Greg KH @ 2005-05-18 16:51 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linux-kernel

On Wed, May 18, 2005 at 11:23:20AM -0500, Timur Tabi wrote:
> Greg KH wrote:
> 
> >But that's how you have to do it, sorry.  You have the patches, why
> >can't you just use grep?  :)
> 
> What does Linus do to keep track of these changes?  Granted, he's not using 
> BitKeeper any more, but it does support release management, so I would 
> presume he was tagging the releases with it.

Yes, and that tagging worked just fine.  You can see this too if you
want to check out a tree based on a tag.

> What does he do now?

Uses git, which will have the same issues as you are facing :)

Please remeber, with a distributed development system like this, going
off of the "date" means _nothing_.  What matters is when that patch and
branch is merged into his tree, and to determine that, you will have to
dig around a bit.

And since you have raw patches, and know what you are looking for, the
solution should be very simple (hint, grep...)

Good luck,

greg k-h

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux.bkbits.net question: mapping cset to kernel version?
  2005-05-18 16:51     ` Greg KH
@ 2005-05-18 23:13       ` Linus Torvalds
  0 siblings, 0 replies; 9+ messages in thread
From: Linus Torvalds @ 2005-05-18 23:13 UTC (permalink / raw)
  To: Greg KH; +Cc: Timur Tabi, linux-kernel



On Wed, 18 May 2005, Greg KH wrote:
> > What does he do now?
> 
> Uses git, which will have the same issues as you are facing :)

Both git and BK can do this.

Once you know which commit you want to check, the way to find out what the
first release was that contained that commit is perfectly straightforward:  
you take each release, and see if the commit is reachable from that
release. You don't need to actually look at the patches, it's enough to
look at the revision tree.

In Git, you can basically do something like

	for i in $releases
	do
		j=$(git-merge-base $commit $i)
		if [ "$j" == "$commit" ]; then
			echo $commit was in $i
		fi
	done

where "releases" is the list of SHA1 names for the commits of the releases
you're interested in, and "commit" is the SHA1 name of the commit you're 
looking at.

In BK, you can do similar things with "bk cset" (and there's some other
helper things for it too), but I don't have the docs available any more,
so..

In all fairness, usually it _is_ easier to just do a grep for it if you 
already have the release patches available. It's what I usually did 
myself.

		Linus

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-05-18 23:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-18 14:11 linux.bkbits.net question: mapping cset to kernel version? Timur Tabi
2005-05-18 15:00 ` Hugh Dickins
2005-05-18 15:01   ` Timur Tabi
2005-05-18 15:14     ` Hugh Dickins
2005-05-18 16:09 ` Greg KH
2005-05-18 16:23   ` Timur Tabi
2005-05-18 16:51     ` Greg KH
2005-05-18 23:13       ` Linus Torvalds
2005-05-18 16:36 ` patrick mcmanus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox