hg strip

David Demelier markand at malikania.fr
Wed Oct 5 06:22:30 UTC 2022


On Tue, 2022-10-04 at 16:52 -0600, Craig Ozancin wrote:
> I just noticed that the strip extension has been deprecated. It has
> been moved to core as debugstrip. This is great. Question, why
> debugstrip?

I guess this has to do with the fact that Mercurial team wants to push
evolve and all other "safe-history" editing commands rather than
history-rewriting ones like strip, histedit and others.

Other than that, I don't think strip should be deprecated. Users have
the power and as long as you know what you're doing that's fine. I
don't want Mercurial to be an opinionated SCM.

That said, debugstrip (aliased to strip) isn't marked as deprecated in
the command help in contrast to rollback

$ hg help rollback
[...]
roll back the last transaction (DANGEROUS) (DEPRECATED)

$ hg help strip
[...]
hg debugstrip [-k] [-f] [-B bookmark] [-r] REV...

aliases: strip

strip changesets and all their descendants from the repository


Regards,

-- 
David


More information about the Mercurial mailing list