This is an archive of the discontinued Mercurial Phabricator instance.

morestatus: add wlock around updateargs file
ClosedPublic

Authored by durham on Jul 14 2017, 6:47 PM.
Tags
None
Subscribers
None

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGX5dddb47deecb: morestatus: add wlock around updateargs file
Summary

Upstream has added a warning around writing files with locks. Since this file is
written as part of an update, let's just take the wlock.

Test Plan

Ran the tests

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Branch
treeonly (bookmark) on default (branch)
Lint
Lint OK
Unit
Unit Tests OK

Event Timeline

durham created this revision.Jul 14 2017, 6:47 PM
quark accepted this revision.Jul 14 2017, 6:48 PM
quark added inline comments.
hgext3rd/morestatus.py
129–132

This could be simplified to repo.vfs.tryunlink(UPDATEARGS).

This revision is now accepted and ready to land.Jul 14 2017, 6:48 PM
This revision was automatically updated to reflect the committed changes.