Mercurial > hg
comparison mercurial/hg.py @ 41236:44a51c1c8e17
narrow: move copytonarrowspec() out of setnarrowpats()
I think it was a mistake to write the working copy's narrowspec every
time the store narrowspec is written. This starts separating those
actions.
Differential Revision: https://phab.mercurial-scm.org/D5509
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 29 Dec 2018 23:40:18 -0800 |
parents | 50ca531f1f24 |
children | 876494fd967d |
comparison
equal
deleted
inserted
replaced
41235:a2ae27993e16 | 41236:44a51c1c8e17 |
---|---|
735 local = destpeer.local() | 735 local = destpeer.local() |
736 if local: | 736 if local: |
737 if narrow: | 737 if narrow: |
738 with local.wlock(), local.lock(): | 738 with local.wlock(), local.lock(): |
739 local.setnarrowpats(storeincludepats, storeexcludepats) | 739 local.setnarrowpats(storeincludepats, storeexcludepats) |
740 narrowspec.copytoworkingcopy(local) | |
740 | 741 |
741 u = util.url(abspath) | 742 u = util.url(abspath) |
742 defaulturl = bytes(u) | 743 defaulturl = bytes(u) |
743 local.ui.setconfig('paths', 'default', defaulturl, 'clone') | 744 local.ui.setconfig('paths', 'default', defaulturl, 'clone') |
744 if not stream: | 745 if not stream: |