Changelogs on kernel.org
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · David Woodhouse
Are you still accepting BK changesets by mail? I heard rumours that you'd said you didn't want them any more -- but couldn't find a message in which you actually said that.
I try to avoid it as much as possible - it's actually more work for me, and about 50% of the BK patches I get don't even apply, because the person who sent them to me didn't send the whole series (ie left out some patch he didn't like or something like that).
Quoted 4 lines
When making changesets to send to you, I usually start with a fresh clone of your latest tree and apply my changes to that -- would you prefer me to make the whole tree available somewhere public (or on master.kernel.org) for a 'bk pull' instead?
I much prefer a bk pull, if the tree I pull from is clean (ie it doesn't have random crud in it, and it contains changsets from just one project).
Some people actually use BK but then send me regular patches anyway, because they find that easier than setting up an exported BK tree and being careful about cleanliness. I don't much care one way or the other:
regular email patches are easy for me to integrate, so it's really up to you.
Quoted 3 lines
Having the facility to put per-file changelogs in with BK rather than just sending patches is something I quite like, so I'd rather not just revert to sending patches.
[ Personal opinion alert! No impact on patch acceptance, as long as
enough changelog information exists _somewhere_ ]
I personally like good changelog comments, and I find per-file comments to be a mistake.
I have a few simple reasons for this:
- most changes are related, and per-file comments tend to just repeat.
In fact, for patches, I just repeat the Subject: line in the per-file comments, so that they have just enough context to get the big picture.
- if your changes _aren't_ related, you should have done multiple changesets in the first place. Rince and repeat as necessary.
- the per-file comments don't show up in many of the standard changelogs (not mine, not in "bk changes" etc), so the per-changeset comment should be "sufficient" in many ways anyway.
But to each his own.
[ End personal opinion ]
Linus
Quoted 4 lines · [email protected] said:
I try to avoid it as much as possible - it's actually more work for
me, and about 50% of the BK patches I get don't even apply, because the person who sent them to me didn't send the whole series (ie left out some patch he didn't like or something like that).
Oh Larry, are you listening? :)
Quoted 3 lines
I much prefer a bk pull, if the tree I pull from is clean (ie it
doesn't have random crud in it, and it contains changsets from just one project).
Noted. Thanks.
Quoted 2 lines
I personally like good changelog comments, and I find per-file
comments to be a mistake.
They can be, but sometimes it can be useful to put a high-level overview of what you've done suitable for people who aren't familiar with the code into the changeset comment, and describe exactly _how_ you did it in per-file comments.
Which in the case of the patch I sent you yesterday would be something like 'fix zisofs breakage with shared zlib' on the changeset and 'set return value to trv not f in NEEDBYTE' in the lib/zlib_inflate/inflate.c log.
In this case, the latter can obviously be deduced from the diffs because it's a one-liner, so perhaps it's a bad example -- but you don't always actually want to have to refer to the diffs.
--
dwmw2
Quoted 9 lines · Linus Torvalds
Quoted 3 lines · David Woodhouse
Are you still accepting BK changesets by mail? I heard rumours that you'd said you didn't want them any more -- but couldn't find a message in which you actually said that.
I try to avoid it as much as possible - it's actually more work for me, and about 50% of the BK patches I get don't even apply, because the person who sent them to me didn't send the whole series (ie left out some patch he didn't like or something like that).
FYI, if they do a
bk send -ubk://linux.bkbits.net/linux-2.5 [email protected]
that problem goes away. The -u<url> stuff does the same sort of handshake that a pull does to figure out what needs to be sent to fill in the holes.
Quoted 9 lines
Quoted 3 lines
Having the facility to put per-file changelogs in with BK rather than just sending patches is something I quite like, so I'd rather not just revert to sending patches.
[ Personal opinion alert! No impact on patch acceptance, as long as
enough changelog information exists _somewhere_ ]I personally like good changelog comments, and I find per-file comments to be a mistake.
<Also personal opinion>
Sometimes yes, sometimes no. Certainly the high order bit is to capture the logical change in the changeset comment. One should only have to read the change{set,log} comment to see if that change is interesting or not, it should not be necessary to go read the file comments.
The file comments are more about the details of the implementation, not the idea. I think the reason that Linus doesn't care about file comments is that he always reads the diffs and that's better than any comment, in general. That's more or less true, but the file comment is a place to give yourself or others a hint as to what was in your mind when you made that change. Those hints can really save your butt when the pressure is on to turn around a bugfix fast for a customer/whatever.
One of the engineers here said "Changeset comments are for managers, file comments are for engineers", which is another way to look at it.
Anyway, I would agree 100% that the changeset comments are the most important in general, so if those are gotten right then we're ahead of the game.
Quoted 2 lines
- the per-file comments don't show up in many of the standard changelogs (not mine, not in "bk changes" etc), so the per-changeset comment
bk changes -v
will list the file comments as well. There is a minor sorting bug in there when the timestamps are screwed up, but it tries pretty hard to make it be
ChangeSet comments
File 1 comments
File 2 comments
Etc.
Signature · 2 lines
--- Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
Quoted 5 lines · [email protected] said:
FYI, if they do a
bk send -ubk://linux.bkbits.net/linux-2.5 [email protected]
that problem goes away. The -u<url> stuff does the same sort of handshake that a pull does to figure out what needs to be sent to fill in the holes.
Not quite. The sender usually omits changesets for a _reason_. You'll often find that one of the changesets in the middle wasn't necessary and didn't touch any of the same files -- in which case patches would have applied just fine.
--
dwmw2
Quoted 8 lines · David Woodhouse
Quoted 5 lines · [email protected] said:
FYI, if they do a
bk send -ubk://linux.bkbits.net/linux-2.5 [email protected]
that problem goes away. The -u<url> stuff does the same sort of handshake that a pull does to figure out what needs to be sent to fill in the holes.
Quoted 4 lines
Not quite. The sender usually omits changesets for a _reason_. You'll often find that one of the changesets in the middle wasn't necessary and didn't touch any of the same files -- in which case patches would have applied just fine.
Understood. BK doesn't work that way for multiple reasons, some which have to do with how it synchronizes replicas, and some which have to do with being able to reproduce a tree exactly.
It's probably best if you simply view this as a BK limitation which isn't going away any time soon and don't put junk changesets in the middle of your stream of changes. It's easy enough to export the change you want as a patch, export the comments in the form that bk comments wants, undo the junk changeset, import the patch, and set the comments. Yeah, it's awkward; consider that a feedback loop which encourages you to think a bit more about what you put in the tree.
Signature · 2 lines
--- Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
Quoted 7 lines · [email protected] said:
It's probably best if you simply view this as a BK limitation which isn't going away any time soon and don't put junk changesets in the middle of your stream of changes. It's easy enough to export the change you want as a patch, export the comments in the form that bk comments wants, undo the junk changeset, import the patch, and set the comments. Yeah, it's awkward; consider that a feedback loop which encourages you to think a bit more about what you put in the tree.
What it actually encourages is for people to have multiple throwaway trees. (Which isn't quite so much of a BK turnoff once you discover compilercache.)
If the tree's going to be thrown away anyway, it doesn't matter if it gets confused -- how about making it a little easier to backport changesets -- surely it should be possible to make BK import a changeset iff all the affected files are identical in both trees before the changeset?
--
dwmw2
Quoted 10 lines · David Woodhouse
Quoted 7 lines · [email protected] said:
It's probably best if you simply view this as a BK limitation which isn't going away any time soon and don't put junk changesets in the middle of your stream of changes. It's easy enough to export the change you want as a patch, export the comments in the form that bk comments wants, undo the junk changeset, import the patch, and set the comments. Yeah, it's awkward; consider that a feedback loop which encourages you to think a bit more about what you put in the tree.
Quoted 7 lines
What it actually encourages is for people to have multiple throwaway trees. (Which isn't quite so much of a BK turnoff once you discover compilercache.)
If the tree's going to be thrown away anyway, it doesn't matter if it gets confused -- how about making it a little easier to backport changesets -- surely it should be possible to make BK import a changeset iff all the affected files are identical in both trees before the changeset?
while we are adding to the wishlist here is a few more items.
Away to make a clone with all files checked out in edit mode. I find that I always do the checkout anyway and maybe it's possible to make it faster if it's done at clone time.
Also I have found that it is a pain in the a** to have debug code that I really don't want to save but it's temporary usefull. When I do a pull that changes the same file the pull don't work and I have to unedit the file and lose the debug code or make a needless checkin. I would really like if it was possible to do a merge that is only in the checkedout file not stored as a changeset.
Quoted 2 lines · On Wed, 15 May 2002 21:15:37 +0100 David Woodhouse <[email protected]> wrote:
What it actually encourages is for people to have multiple throwaway trees. (Which isn't quite so much of a BK turnoff once you discover compilercache.)
s/compilercache/ccache/
Cheers,
Rusty.
Signature · 2 lines
there are those who do and those who hang on and you don't see too many doers quoting their contemporaries. -- Larry McVoy
Quoted 11 lines · David Woodhouse
Quoted 7 lines · [email protected] said:
It's probably best if you simply view this as a BK limitation which isn't going away any time soon and don't put junk changesets in the middle of your stream of changes. It's easy enough to export the change you want as a patch, export the comments in the form that bk comments wants, undo the junk changeset, import the patch, and set the comments. Yeah, it's awkward; consider that a feedback loop which encourages you to think a bit more about what you put in the tree.
What it actually encourages is for people to have multiple throwaway trees. (Which isn't quite so much of a BK turnoff once you discover compilercache.)
Yup, we use that here, works great.
Quoted 4 lines
If the tree's going to be thrown away anyway, it doesn't matter if it gets confused -- how about making it a little easier to backport changesets -- surely it should be possible to make BK import a changeset iff all the affected files are identical in both trees before the changeset?
We've already built all the interfaces you need to do this, so would you be interested in writing the shell script that does it? The interfaces you will want:
bk export -tpatch
bk import -tpatch
bk comments
bk changes -v
You'll want this, I believe that you can take the output of this command and feed it into bk comments and have that be a noop. If that works, this is what you need to save as the comments part of the patch, and now it's pretty trivial to move the patch backwards.
bk changes -r+ -vd'### Comments for :GFILE:|+\n$each(:C:){(:C:)\n}'
If you do write this, let me know if you want it included as a "bk backport" command.
Also note that there is a bk bin/bk.script which is a set of shell script functions. Many BK commands start out their life as
# bk backport - cherry pick a change out of tree A and put it in tree B
# usage: bk backport -r<rev> from to
_backport() {
}If you start the command with a underscore, then BK will autotranslate that into a command that you can use like
bk backport ....
If you prefer a standalone command (for licensing reasons, perhaps), then make it a standalone shell script, put it in bk bin, and bk will find it.
Signature · 2 lines
--- Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
Quoted 2 lines
Also I have found that it is a pain in the a** to have debug code that I really don't want to save but it's temporary usefull. When I do a pull
bk park # saves work as a patch
bk pull
bk unpark # restores the patch
park/unpark are undocumented because they puke when there are patch rejects. If we document them, then we have to explain to people what to do when there are patch rejects, and if you need that explanation, we probably can't help you. You guys all grok patch rejects, so try park/unpark.
Signature · 2 lines
--- Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
Quoted 8 lines · Larry McVoy
bk park # saves work as a patch
bk pull
bk unpark # restores the patchpark/unpark are undocumented because they puke when there are patch rejects. If we document them, then we have to explain to people what to do when there are patch rejects, and if you need that explanation, we probably can't help you. You guys all grok patch rejects, so try park/unpark.
So what's the undocumented option to turn off consistency checks? ;-)
I understand that they exist for a reason, etc, but I'd really like to have the option to switch them off (and suffer the consequences all by myself)
--Kai
Quoted 11 lines · Kai Germaschewski
Quoted 8 lines · Larry McVoy
bk park # saves work as a patch
bk pull
bk unpark # restores the patchpark/unpark are undocumented because they puke when there are patch rejects. If we document them, then we have to explain to people what to do when there are patch rejects, and if you need that explanation, we probably can't help you. You guys all grok patch rejects, so try park/unpark.
Quoted 5 lines
So what's the undocumented option to turn off consistency checks? ;-)
I understand that they exist for a reason, etc, but I'd really like to have the option to switch them off (and suffer the consequences all by myself)
We've got a release in the works which makes it so you can run them only once in a 24 hour period. I'm fixing up the stuff that caused the problems on multiple patch imports and then we'll do a release.
Signature · 2 lines
--- Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
Quoted 1 line · Larry McVoy
On Wed, May 15, 2002 at 05:56:18PM -0500, Kai Germaschewski wrote:
[...]
Quoted 1 line
Quoted 1 line
So what's the undocumented option to turn off consistency checks? ;-)
[...]
Quoted 3 lines
We've got a release in the works which makes it so you can run them only once in a 24 hour period. I'm fixing up the stuff that caused the problems on multiple patch imports and then we'll do a release.
What happened to "... gives you enough rope to shoot your feet"? --
Horst von Brand [email protected]
Casilla 9G, Vin~a del Mar, Chile +56 32 672616