Deleting all revision history for a single file
John Arbash Meinel
john at arbash-meinel.com
Thu Mar 13 15:13:06 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Westby wrote:
> 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
Or on top of 'bzr-rebase'.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH2USCJdeBCYSNAAMRAlwWAKC6O6GddC06frF0f3vrqqg9zOEwBQCgrk5c
kOzXcNEK2k04qWGGq5eWLNQ=
=/eAh
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list