comparison mercurial/wireprotoserver.py @ 45030:5797dbb630df

locks: expect repo lock, not wlock, when writing to .hg/strip-backup/ There should be no need for a working copy lock when creating (or reading) bundles in `.hg/strip-backup/` since they don't affect the working copy. I noticed this because we have an extension that tries to strip some revisions while holding only a repo lock. I guess we have no such cases in core, which seems a bit surprising. Maybe we always take a wlock at a higher level so the working copy is not updated while the target commit is being stripped. Differential Revision: https://phab.mercurial-scm.org/D8666
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 25 Jun 2020 12:02:34 -0700
parents 8ff1ecfadcd1
children b7b8a1538161
comparison
equal deleted inserted replaced
45029:6118ad07b98d 45030:5797dbb630df