mercurial/sparse.py
branchstable
changeset 48494 b74ee41addee
parent 47748 000ea893aad3
child 48665 a62ba3345534
equal deleted inserted replaced
48493:50330d481640 48494:b74ee41addee
   716 
   716 
   717     Only one of the actions may be performed.
   717     Only one of the actions may be performed.
   718 
   718 
   719     The new config is written out and a working directory refresh is performed.
   719     The new config is written out and a working directory refresh is performed.
   720     """
   720     """
   721     with repo.wlock(), repo.dirstate.parentchange():
   721     with repo.wlock(), repo.lock(), repo.dirstate.parentchange():
   722         raw = repo.vfs.tryread(b'sparse')
   722         raw = repo.vfs.tryread(b'sparse')
   723         oldinclude, oldexclude, oldprofiles = parseconfig(
   723         oldinclude, oldexclude, oldprofiles = parseconfig(
   724             repo.ui, raw, b'sparse'
   724             repo.ui, raw, b'sparse'
   725         )
   725         )
   726 
   726