Mercurial wipes repository history!?

Benoit Boissinot bboissin at gmail.com
Thu Apr 8 08:42:29 CDT 2010


On Thu, Apr 8, 2010 at 3:16 PM, Jon Ribbens
<jon-mercurial at unequivocal.co.uk> wrote:
> Is it just me, or is this very, very bad?
>
> $ hg version | head -1
> Mercurial Distributed SCM (version 1.5)
> $ hg -q clone ssh://hg@hg/audit
> $ cd audit
> $ hg log | wc -l
> 4828
> $ hg rollback
> rolling back last transaction
> $ hg log
> $ find .hg/store/data -type f
> $
>
hg help rollback: roll back the last transaction

In the case of a clone using a network protocol, it will rollback the
last transaction. It means removing the entire history of the local
repo.
(sorry I don't see what's wrong with that).

> Also the behaviour is different if the parent
> repository is local not remote - the rollback just says it has no
> rollback info and does nothing.
>

Yep, we could probably make it rollback too so it is more consistent.

regards,

Benoit


More information about the Mercurial mailing list