Mercurial > hg
comparison hgext/record.py @ 41798:8c42b4a3d447
strip: introduce a soft strip option
This is the first user-accessible way to use the archived phase introduced in
4.8. This implements a feature discussed during the Stockholm sprint, using
the archived phase for hiding changesets.
The archived phase behaves exactly as stripping: changesets are no longer
visible, but pulling/unbundling them will make then reappear. The only notable
difference is that unlike hard stripping, soft stripping does not affect
obsmarkers.
The next changeset will make use of the archived phase for history rewriting
command. However, having a way to manually trigger the feature first seems a
necessary step before exposing users to this phase; there is a way to
un-archived changesets (unbundling), so there must be a way to archive them
again.
Adding a flag to strip is a good way to provide access to the feature without
taking a too big risk on the final UI we want. The flag is experimental so it
won't be exposed by default.
Using the archived phase is faster and less traumatic for the repository than
actually stripping changesets.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 16 Oct 2018 15:48:00 +0200 |
parents | 4d21ebc4cb47 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
41797:68bbcc70e274 | 41798:8c42b4a3d447 |
---|