Differences between revisions 1 and 2
Revision 1 as of 2009-05-05 18:14:18
Size: 1315
Comment: Initial version
Revision 2 as of 2009-05-19 19:30:57
Size: 1317
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Download site: [http://bitbucket.org/face/timestamp/] (Developed with Mercurial 1.2) Download site: [[http://bitbucket.org/face/timestamp/]] (Developed with Mercurial 1.2)

Makewritable Extension

This extension is not distributed with Mercurial.

Author: Friedrich Kastner-Masilko

Download site: http://bitbucket.org/face/timestamp/ (Developed with Mercurial 1.2)

This extension is still in alpha, use it at your own risk.

Overview

This extension interactively removes read-only flags from files being accessed in write-mode. Normally, Mercurial would abort such operations on read-only files. The extension forces a hook/wrapping of the opener class, testing every file access for write mode and read-only flag.

Configuration

Configure your .hgrc to enable the extension by adding following lines:

[extensions]
makewritable = path/to/makewritable.py

This will already install the opener hook.

Usage

Whenever Mercurial attemps to open a read-only file in write-mode, you will be prompted (via the appropriate UI's prompt method) with a message similar to this:

make '/full/path/to/readonly.file' writable? [Yna?]

You can then enter one of the following commands:

y - make the file writable
n - leave the file read-only, leads to aborting the write access

a - make all remaining files writable without further notice

? - display help


CategoryExtension

MakewritableExtension (last edited 2019-10-31 12:28:51 by FriedrichKastner)