Deleting a changeset

Benoit Boissinot bboissin at gmail.com
Tue May 30 09:23:37 CDT 2006


On 5/30/06, Thibault North <tnorth at bluewin.ch> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
> I just made a stupid mistake: commiting a file containing a password,
> which was used for tests.
> I cannot rollback it, not being the last changeset.
>
> In that type of case, is there any way of removing that precious
> information of the repository ?
> (manually removing the changeset for example)
>
> Or isn't it possible without killing the whole history ?
> Thanks !
> TNorth

If you commited afterward you will kill the history. One possible
solution is to clone -r before the changeset and then add the changes
with 'hg export' and 'hg import'.

regards,

Benoit


More information about the Mercurial mailing list