Differences between revisions 4 and 15 (spanning 11 versions)
Revision 4 as of 2009-07-02 15:40:55
Size: 1534
Comment: 1.3 notice
Revision 15 as of 2019-10-31 12:28:51
Size: 2358
Comment: Migrated to OSDN, because Bitbucket decided to eject Mercurial users
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Download site: http://bitbucket.org/face/timestamp/ (Developed with Mercurial 1.2 until revision [[http://bitbucket.org/face/timestamp/src/6a39353faa79/makewritable.py|7:6a39353faa79]] - works with 1.3 from revision [[http://bitbucket.org/face/timestamp/src/d39bbd33e5e8/makewritable.py|11:d39bbd33e5e8]]) Repository: http://hg.osdn.net/view/mercurialextensions/timestamp/
Line 8: Line 8:
This extension is still in '''alpha''', use it at your own risk. === Compatibility ===
||Mercurial version x ||Extension version ||
||1.2 <= x < 1.3 ||[[http://hg.osdn.net/view/mercurialextensions/timestamp/file/6a39353faa79/makewritable.py|7:6a39353faa79]] ||
||1.3 <= x < 1.4 ||[[http://hg.osdn.net/view/mercurialextensions/timestamp/file/d39bbd33e5e8/makewritable.py|11:d39bbd33e5e8]] ||
||1.4 <= x < 1.7 ||[[http://hg.osdn.net/view/mercurialextensions/timestamp/file/6ea28b25c44f/makewritable.py|16:6ea28b25c44f]] ||
||1.7 <= x < 1.9 ||[[http://hg.osdn.net/view/mercurialextensions/timestamp/file/32c9e3253671/makewritable.py|21:32c9e3253671]] ||
||1.9 <= x < 2.7 ||[[http://hg.osdn.net/view/mercurialextensions/timestamp/file/fe1b90905b3c/makewritable.py|22:fe1b90905b3c]]||
||2.7 <= x < 3.3 ||[[http://hg.osdn.net/view/mercurialextensions/timestamp/file/46003917fb72/makewritable.py|46003917fb72]]||
||3.3 <= x < 3.7 ||[[http://hg.osdn.net/view/mercurialextensions/timestamp/file/4943f11991a4/makewritable.py|4943f11991a4]]||
||3.7 <= x ||[[http://hg.osdn.net/view/mercurialextensions/timestamp/file/9e0087580334/makewritable.py|9e0087580334]]||
Line 14: Line 24:
Configure your .hgrc to enable the extension by adding following lines: Configure your .hgrc (or Mercurial.ini on Windows) to enable the extension by adding following lines:

Makewritable Extension

This extension is not distributed with Mercurial.

Author: Friedrich Kastner-Masilko

Repository: http://hg.osdn.net/view/mercurialextensions/timestamp/

Compatibility

Mercurial version x

Extension version

1.2 <= x < 1.3

7:6a39353faa79

1.3 <= x < 1.4

11:d39bbd33e5e8

1.4 <= x < 1.7

16:6ea28b25c44f

1.7 <= x < 1.9

21:32c9e3253671

1.9 <= x < 2.7

22:fe1b90905b3c

2.7 <= x < 3.3

46003917fb72

3.3 <= x < 3.7

4943f11991a4

3.7 <= x

9e0087580334

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 (or Mercurial.ini on Windows) 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


CategoryExtensionsByOthers

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