lm@bitmover.com said: > 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. I've got a shell script which does this (I use it to take test patches from my build tree back to a pristine source for submission to linus). I'm afraid it's a bit rough and ready, but it takes a given set of changes, wraps them up as patches, extracts the comments and applies them as patches to a different tree and then inserts the comments. I wrote it a while ago, so it may be a little dusty and lacking in the newer bitkeeper features. James