Show More
@@ -630,7 +630,7 b' def clearrules(repo, force=False):' | |||
|
630 | 630 | The remaining sparse config only has profiles, if defined. The working |
|
631 | 631 | directory is refreshed, as needed. |
|
632 | 632 | """ |
|
633 | with repo.wlock(): | |
|
633 | with repo.wlock(), repo.dirstate.parentchange(): | |
|
634 | 634 | raw = repo.vfs.tryread(b'sparse') |
|
635 | 635 | includes, excludes, profiles = parseconfig(repo.ui, raw, b'sparse') |
|
636 | 636 | |
@@ -708,7 +708,7 b' def updateconfig(' | |||
|
708 | 708 | |
|
709 | 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 | 712 | raw = repo.vfs.tryread(b'sparse') |
|
713 | 713 | oldinclude, oldexclude, oldprofiles = parseconfig( |
|
714 | 714 | repo.ui, raw, b'sparse' |
General Comments 0
You need to be logged in to leave comments.
Login now