[issue1597] record fails with "permission denied" and loses changes

Vadim Zeitlin mercurial-bugs at selenic.com
Sun Apr 5 11:53:03 CDT 2009


New submission from Vadim Zeitlin <vz-mercurial at zeitlins.org>:

Using hg 1.2.1 under Windows record started failing in my (very simple, i.e. 3
directories and less than a dozen files) working repository. Unfortunately I
can't reproduce the bug in freshly created repository but while I realize that
it risks making it difficult to debug it I still decided to report it in the
hope that it rings some bells.

Anyhow, the symptom is (notice that I'm using Cygwin zsh under Windows but the
problem is the same in cmd.exe):

% hg record -m "xxx" file
... do anything at all but select at least one chunk ...
abort: Permission denied: f:\ull\path\to\file

And the file *reverts* to its last repository version, i.e. all changes to it
since last commit are seemingly lost. Luckily, I found the working copies in
.hg/record-backups and could at least restore them but this is was a frightening
experience (of course I use record in the first place because I have quite a few
changes!) and it would be great if record could at least handle the error better.

Even better would be if it didn't fail... I don't have any idea why it does, the
file is on NTFS disk and I am the owner of the file and have full control access
to it. In particular, the file is not read only (so this is different from issue
1545) and it has standard permissions (hence this isn't issue 1506 neither). And
it did work for me once already in this repository -- but now it just won't work
any more.

I'd be glad to provide any additional information (except the most important
piece which is how to reproduce this :-( because I already spent almost an hour
trying to do it unsuccessfully).

----------
messages: 8996
nosy: VZ
priority: bug
status: unread
title: record fails with "permission denied" and loses changes

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1597>
____________________________________________________



More information about the Mercurial-devel mailing list