freeing up storage space that was accidentally hogged by a file in repo

Neil Martinsen-Burrell nmb at wartburg.edu
Wed Mar 11 21:18:46 GMT 2009


Rahul Nabar <rpnabar <at> gmail.com> writes:

> One of my automated scripts accidentally added a somewhat larger and
> also quick changing file to the repo. Is there a way to permanently
> remove it from the archive to free up all its storage? "bzr remove"
> won't really affect the historical storage it has occupied, right?
> 
> This time it is not so critical because I detected it fairly quickly
> and the file was not that large. BUt I am just wondering what happens
> if I accidentally end up adding say a 100 GB swap file to my repos. Is
> the act irreversible or is there a way out?

Ian Clatworthy's bzr-fast-import plugin includes a fast-import-filter command
that can be used to remove files completely from the history of a repository. 


More information about the bazaar mailing list