##// END OF EJS Templates
sparse: clear rules in the context of a `parentchanges` context...
marmoute -
r48406:26bf0b9f default
parent child Browse files
Show More
@@ -630,7 +630,7 b' def clearrules(repo, force=False):'
630 The remaining sparse config only has profiles, if defined. The working
630 The remaining sparse config only has profiles, if defined. The working
631 directory is refreshed, as needed.
631 directory is refreshed, as needed.
632 """
632 """
633 with repo.wlock():
633 with repo.wlock(), repo.dirstate.parentchange():
634 raw = repo.vfs.tryread(b'sparse')
634 raw = repo.vfs.tryread(b'sparse')
635 includes, excludes, profiles = parseconfig(repo.ui, raw, b'sparse')
635 includes, excludes, profiles = parseconfig(repo.ui, raw, b'sparse')
636
636
@@ -708,7 +708,7 b' def updateconfig('
708
708
709 The new config is written out and a working directory refresh is performed.
709 The new config is written out and a working directory refresh is performed.
710 """
710 """
711 with repo.wlock():
711 with repo.wlock(), repo.dirstate.parentchange():
712 raw = repo.vfs.tryread(b'sparse')
712 raw = repo.vfs.tryread(b'sparse')
713 oldinclude, oldexclude, oldprofiles = parseconfig(
713 oldinclude, oldexclude, oldprofiles = parseconfig(
714 repo.ui, raw, b'sparse'
714 repo.ui, raw, b'sparse'
General Comments 0
You need to be logged in to leave comments. Login now