[issue2569] eol extension takes write lock on reading

Mads Kiilerich bugs at mercurial.selenic.com
Sat Dec 25 08:38:53 CST 2010

New submission from Mads Kiilerich <mads at kiilerich.com>:

http://www.selenic.com/pipermail/mercurial/2010-December/036402.html here so
we can track it properly.

When discussing AFS and permissions and crashes with eol, mpm said:

"""There's no reason we should be doing whatever mysterious thing it is
that _hgcleardirstate() is doing unless we actually look at the
dirstate, which never happens here. But we're doing it unconditionally
if eol is enabled."""

The issue can be reproduced with
  $ echo '[extensions]' >> $HGRCPATH
  $ echo 'eol =' >> $HGRCPATH
  $ hg init repo
  $ cd repo
  $ touch .hgeol
  $ hg st
  ? .hgeol
  $ chmod -R -w .hg
  $ sleep 1
  $ touch .hgeol
  $ hg st
  abort: could not lock working directory of $TESTTMP/repo: Permission denied

assignedto: mg
messages: 14774
nosy: kiilerix, mg, mpm
priority: bug
status: unread
title: eol extension takes write lock on reading

Mercurial issue tracker <bugs at mercurial.selenic.com>

More information about the Mercurial-devel mailing list