Re: BK, deltas, snapshots and fate of -pre...

Larry McVoy
2002-04-21T17:23:44Z

> IOW, I propose to create a "linuspush" script that replaces his current
> "bk push" command. Linus pushes batches of csets out at a time,
> make these cset batches the pre-patches...

This is easily doable as a trigger. I'm pretty sure that all you want
is

cat > BitKeeper/triggers/pre-incoming.diffs
#!/bin/sh
bk prs -hr+ -nd:KEY: ChangeSet > BitKeeper/log/save_key
^D

cat > BitKeeper/triggers/post-incoming.diffs
#!/bin/sh

i=0
while test -f BitKeeper/tmp/diffs-$i
do i=`expr $i + 1`
done
bk diffs -C`cat BitKeeper/log/save_key` > BitKeeper/tmp/diffs-$i
^D

chmod +x BitKeeper/triggers/*incoming.diffs

The only reason I don't do this on bkbits.net is that regular style patches
eat a lot more bandwidth than BK patches and we can't afford to offer up
the bandwidth for free.
--
---
Larry McVoy lm at bitmover.com http://www.bitmover.com/lm