Differences between revisions 8 and 12 (spanning 4 versions)
Revision 8 as of 2010-04-27 22:53:03
Size: 1713
Comment: add patch-review/edit feature
Revision 12 as of 2016-05-14 09:15:32
Size: 2262
Editor: rcl
Comment: clarify configuration steps for new and older Hg versions
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Crecord Extension ==

'''This extension is not distributed with Mercurial.'''
#pragma section-numbers 2
= Crecord Extension =
'''This extension has been incorporated into Mercurial''' (since v3.8.1).
Line 7: Line 7:
Information / download site: http://www.bitbucket.org/edgimar/crecord/wiki/Home Web page: http://www.bitbucket.org/edgimar/crecord/wiki/Home
Line 9: Line 9:
=== Overview === Repository: https://bitbucket.org/edgimar/crecord
Line 11: Line 11:
<<TableOfContents(3)>>

== Overview ==
Line 13: Line 16:
=== Features === == Features ==
Line 15: Line 18:
Line 21: Line 25:
=== Configuration ===
To install the extension, first download the crecord archive from the site above, and extract it to a folder where you prefer to keep extensions (e.g. $HOME/hgext).
== Configuration ==
Line 24: Line 27:
Configure your .hgrc file to enable the extension by adding following lines: === For Mercurial v3.8.1 and later ===

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

{{{
[ui]
interface = curses
}}}

The curses interface will be used by all interactive commits, e.g.

{{{
hg commit -i
}}}

You may add an alias to the `.hgrc` to mimic the old call to crecord:

{{{
[alias]
crecord = !$HG commit -i
}}}

(note: the package directory is the one containing the `__init__.py` file)

=== For older Mercurial versions ===
Users of older versions of Mercurial (< 3.8.1) can install the extension by downloading the crecord archive from the site above, and extracting it to a folder where you prefer to keep extensions (e.g. `$HOME/hgext`). Enable the extension by adding the following to your `.hgrc`:
Line 31: Line 59:
(note: the package directory is the one containing the `__init__.py` file)

Crecord Extension

This extension has been incorporated into Mercurial (since v3.8.1).

Author: Mark Edgington

Web page: http://www.bitbucket.org/edgimar/crecord/wiki/Home

Repository: https://bitbucket.org/edgimar/crecord

1. Overview

The crecord extension is a curses (i.e. text-based GUI) interface which provides the crecord and qcrecord commands that may be used in lieu of commit or qnew -f. These commands let you choose which parts of the changes in a working directory you'd like to commit, at the granularity of patch hunks or lines. It is similar in spirit to the darcs record command and the RecordExtension.

2. Features

In addition to allowing you to choose changes to commit at a line-level granularity, crecord has the following advantages over the text-only RecordExtension:

  • Ability to scroll through all changes, jumping back and forth between changes.
  • Patch headers and hunks can be folded to make it easy to view only the changes you're interested in.
  • Commit message can be incrementally edited as you work through the changes
  • Color display of changes and trailing whitespace
  • Final patch can be reviewed / modified in an external editor prior to committing

3. Configuration

3.1. For Mercurial v3.8.1 and later

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

[ui]
interface = curses

The curses interface will be used by all interactive commits, e.g.

hg commit -i

You may add an alias to the .hgrc to mimic the old call to crecord:

[alias]
crecord = !$HG commit -i

(note: the package directory is the one containing the __init__.py file)

3.2. For older Mercurial versions

Users of older versions of Mercurial (< 3.8.1) can install the extension by downloading the crecord archive from the site above, and extracting it to a folder where you prefer to keep extensions (e.g. $HOME/hgext). Enable the extension by adding the following to your .hgrc:

[extensions]
hgext.crecord=/path/to/crecord/package


CategoryExtensionsByOthers

CrecordExtension (last edited 2016-10-25 15:39:56 by GaborStefanik)