strip does not fail on public changesets
Angel Ezquerra
angel.ezquerra at gmail.com
Fri Mar 30 23:23:11 UTC 2012
Today I was _very_ surprised when I discovered that you can strip
public changesets.
It was a bit embarrassing because I was just touting how safe
mercurial is to a new user. I was telling him how mercurial protects
you from shooting yourself on the foot by modifying shared revisions
when I tried to strip a public changeset expecting it to fail. Instead
mercurial happily stripped the changeset!
On hindsight I guess that one could argue that stripping a public
changeset should be fine, since you should be able to get it back by
pulling again. Nevertheless it was still quit surprising and
unexpected to me that you can do it.
Is this the proper behavior? Shouldn't mercurial require that the
changeset is made draft before being able to strip it?
Cheers,
Angel
More information about the Mercurial-devel
mailing list