[Bitkeeper-users] Me again, csetpruning

Larry McVoy lm at bitmover.com
Wed Mar 1 07:30:03 PST 2006


On Wed, Mar 01, 2006 at 11:28:25AM -0500, Tristan Van Berkom wrote:
> So for a temporary solution... I'll:
>     o Copy my repo onto a backup so as to keep the history somewhere
>     o Run csetprune to remove all delta's on binary files that are
>       not the `head' delta.

That won't work, csetprune has to be used to remove all the deltas
from a file, not just the ones in the middle.

> I've been toying with 'bk prs' and its doc so as to generate the
> list of keys to pass to csetprune (in order to prune just the history)
> 
> so far I have:  bk -r prs -hr+ -nd'$if(:ENC:=binary){:ROOTKEY:}'
> 
> which will fetch me all the deltas for binary files... how do
> I specify that I want all deltas except the latest `HEAD' delta ?

Not that it helps but there is a way to do that:

bk -r prs -aohr+ -nd'$if(:ENC:=binary){:KEY:}'

> Cheers,
>                             -Tristan
> PS:
> Also stumbled on this:
> http://db.bitkeeper.com/cgi-bin/view.cgi?id=2005-01-12-004
> 
> I dont know about the site permissions but maybe I should (or
> someone with permission should)... write this handy info in
> as a workaround for other concerned googler's benefit ?

Sure, when you arrive at an answer you like keeping a record in the bugdb
is a good idea.  We should set up a BK Wiki for this sort of stuff.
-- 
---
Larry McVoy                lm at bitmover.com           http://www.bitkeeper.com


More information about the Bitkeeper-users mailing list