Re: Permanently removing files from repo?

Larry McVoy <[email protected]>
Newsgroups gmane.comp.version-control.bitkeeper.user
Message-ID <[email protected]>
> What is the best way to eliminate these files completely from the master 
> repo? If I do this, can I have this change propagate to the clones (via 
> "bk pull"), or will I have to make the same change in each clone?

You can just remove the s.files that you don't want but then bk check will
complain.  You can make check not complain by doing this

	bk -r check -ag | bk gone -
	bk commit -y'mark files as gone'

You could, if you really wanted, make that removal propogate doing something
like this:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Note: This is untested, try it out in a clone and make sure it works
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

	bk -r check -ag > ROOTKEYS
	bk gone - < ROOTKEYS

	ed BitKeeper/triggers/post-incoming-rmfiles
	a
	#!/bin/sh -x

	cat > /tmp/keys$$ <<EOF
	.
	$r ROOTKEYS
	$a
	EOF
	while read key
	do	rm -f `bk -r prs -hr1.0 -nd'$if(:ROOTKEY:='$key'){:SFILE:}'`
	done < /tmp/keys$$
	.
	w
	q
	chmod +x BitKeeper/triggers/post-incoming-rmfiles
	bk new BitKeeper/triggers/post-incoming-rmfiles
	bk commit -y'Remove files and force their removal everywhere'

-- 
---
Larry McVoy                lm at bitmover.com           http://www.bitkeeper.com
_______________________________________________
Bitkeeper-users mailing list
[email protected]
http://bitmover.com/mailman/listinfo/bitkeeper-users
To unsubscribe from this list, go to the above URL, follow instruction at the bottom of the web page.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.