This is an archive of the discontinued Mercurial Phabricator instance.

narrow: don't resurrect old commits when narrowing (don't strip obsmarkers)
ClosedPublic

Authored by martinvonz on Dec 3 2018, 8:00 PM.

Details

Summary

If you have an old obsolescence-chain of commits that has been pruned
and you narrow your repo so that some of those commits get stripped
(because they affected the removed paths), then we would currently
resurrect the commit that came before (along the obsmarker chain) the
last stripped commit. That happens by the usual rules for
obsmarker-stripping. However, it's quite surprising when it happens
when you narrow your repo. This patch makes narrowing not strip
obsmarkers.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Dec 3 2018, 8:00 PM
This revision was automatically updated to reflect the committed changes.