mercurial/sparse.py
changeset 47605 a5701ffc10e4
parent 47012 d55b71393907
child 47606 26bf0b9fe78f
equal deleted inserted replaced
47604:090fc6a95e50 47605:a5701ffc10e4
   644     """Import sparse config rules from files.
   644     """Import sparse config rules from files.
   645 
   645 
   646     The updated sparse config is written out and the working directory
   646     The updated sparse config is written out and the working directory
   647     is refreshed, as needed.
   647     is refreshed, as needed.
   648     """
   648     """
   649     with repo.wlock():
   649     with repo.wlock(), repo.dirstate.parentchange():
   650         # read current configuration
   650         # read current configuration
   651         raw = repo.vfs.tryread(b'sparse')
   651         raw = repo.vfs.tryread(b'sparse')
   652         includes, excludes, profiles = parseconfig(repo.ui, raw, b'sparse')
   652         includes, excludes, profiles = parseconfig(repo.ui, raw, b'sparse')
   653         aincludes, aexcludes, aprofiles = activeconfig(repo)
   653         aincludes, aexcludes, aprofiles = activeconfig(repo)
   654 
   654