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