This is an archive of the discontinued Mercurial Phabricator instance.

narrow: call narrowspec.{save,restore,clear}backup directly
ClosedPublic

Authored by martinvonz on Aug 3 2018, 5:23 PM.

Details

Summary

I want to move .hg/narrowspec to .hg/store/narrowspec and we need to
decouple the narrowspec update from the dirstate update for that. This
patch lets the callers call the narrowspec backup functions directly,
in addition to the dirstate backup functions. The narrowspec methods
are made to check if narrowing is enabled. For that, a repo instance
was needed, which all the callers luckily already had available.

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.Aug 3 2018, 5:23 PM
martinvonz updated this revision to Diff 9871.Aug 3 2018, 8:12 PM
This revision was automatically updated to reflect the committed changes.