views:

117

answers:

1

I've pulled in some changes to read-only files from a remote repository and I'm trying to update my working area, but I get [Errno 13] ... Access is denied errors when TortoiseHg tries to update the read-only files.

I'm wondering if there's a command, option, or setting that will solve this problem in the TortoiseHg GUI. I can't seem to updated read-only files from the command line, either, so I'm also interested command-line solutions as well.

A: 

On Windows, attrib -r * /s from the repository root will remove all read-only attributes from files.

Mark Tolonen
Understood, but this doesn't solve my problem. The files need to stay read-only.
thebretness
That makes it difficult to update the files :) You may need some kind of hook/extension that tests for, removes, updates, then replaces the read only flag then, but I don't know of one.
Mark Tolonen