Size: 1806
Comment: Added compatibility matrix
|
Size: 1806
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 15: | Line 15: |
|| x >= 1.7 || [[http://bitbucket.org/face/timestamp/src/6ea28b25c44f/makewritable.py|21:32c9e3253671]] || | || x >= 1.7 || [[http://bitbucket.org/face/timestamp/src/32c9e3253671/makewritable.py|21:32c9e3253671]] || |
Makewritable Extension
This extension is not distributed with Mercurial.
Author: Friedrich Kastner-Masilko
Download site: http://bitbucket.org/face/timestamp/
This extension is still in alpha, use it at your own risk.
Compatibility
Mercurial version x |
Extension version |
1.2 <= x < 1.3 |
|
1.3 <= x < 1.4 |
|
1.4 <= x < 1.7 |
|
x >= 1.7 |
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