narrow: detect if narrowspec was changed in a different share
With this commit, `hg share` should be usable with narrow repos. Design explained on https://www.mercurial-scm.org/wiki/NarrowSharePlan I was running into cache invalidation problems when updating the narrowspec. After spending a day trying to figure out a good solution, I resorted to just assigning repo.narrowpats and repo._narrowmatch after invalidating them. Differential Revision: https://phab.mercurial-scm.org/D5278
Showing
- hgext/narrow/TODO.rst 0 additions, 3 deletionshgext/narrow/TODO.rst
- hgext/narrow/narrowcommands.py 10 additions, 1 deletionhgext/narrow/narrowcommands.py
- mercurial/hg.py 5 additions, 1 deletionmercurial/hg.py
- mercurial/localrepo.py 8 additions, 0 deletionsmercurial/localrepo.py
- mercurial/narrowspec.py 70 additions, 0 deletionsmercurial/narrowspec.py
- tests/test-narrow-debugcommands.t 1 addition, 0 deletionstests/test-narrow-debugcommands.t
- tests/test-narrow-share.t 41 additions, 3 deletionstests/test-narrow-share.t
- tests/test-narrow-trackedcmd.t 2 additions, 0 deletionstests/test-narrow-trackedcmd.t
Loading
Please register or sign in to comment