Mercurial > hg
comparison hgext/narrow/narrowcommands.py @ 36469:28c7f580360b
narrow: reduce depedence on narrowspec.save()
I think narrowspec should be a simple, low-level module and not depend
on the hg module. This prepares for moving that dependency out of
narrowspec.
Differential Revision: https://phab.mercurial-scm.org/D2492
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 28 Feb 2018 10:32:00 -0800 |
parents | 6aae86976324 |
children | a1d5951efce7 |
comparison
equal
deleted
inserted
replaced
36468:6aae86976324 | 36469:28c7f580360b |
---|---|
86 if not includepats and excludepats: | 86 if not includepats and excludepats: |
87 # If nothing was included, we assume the user meant to include | 87 # If nothing was included, we assume the user meant to include |
88 # everything, except what they asked to exclude. | 88 # everything, except what they asked to exclude. |
89 includepats = {'path:.'} | 89 includepats = {'path:.'} |
90 | 90 |
91 narrowspec.save(pullop.repo, includepats, excludepats) | 91 pullop.repo.setnarrowpats(includepats, excludepats) |
92 | 92 |
93 # This will populate 'includepats' etc with the values from the | 93 # This will populate 'includepats' etc with the values from the |
94 # narrowspec we just saved. | 94 # narrowspec we just saved. |
95 orig(pullop, kwargs) | 95 orig(pullop, kwargs) |
96 | 96 |