Deleting all revision history for a single file

James Westby jw+debian at jameswestby.net
Thu Mar 13 16:05:17 GMT 2008


On Thu, 2008-03-13 at 15:22 +0000, Ollie Saunders wrote:
> Consider a where a file has been version controlled and somebody put
> some sensitive information such as a password in it and commited it.
> You then want to remove that sensitive information from the revision
> history.
> 
> Is it possible to do this?
> 
> I tried bzr uncommit -r 0 FILE 
> but now bzr log lists noting. (I made a backup first don't worry).


I'm afraid that is currently not possible.

Doing this means that you have to rewrite the whole of history,
and so you would break all branches that had branches off from
the one you rewrite.

It would be fairly easy to write a tool to do this based on top
of bzr-fast-import.

Thanks,

James






More information about the bazaar mailing list