equal
deleted
inserted
replaced
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 |