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

Larry McVoy (lm@bitmover.com)
Sun, 21 Apr 2002 10:23:39 -0700


> 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 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/