Differences between revisions 2 and 3
Revision 2 as of 2016-01-21 11:46:58
Size: 1105
Comment:
Revision 3 as of 2016-01-22 13:33:53
Size: 1104
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Automatically detect moves and records them Automatically detect moves and record them

automv

Automatically detect moves and record them

1. Status

This extension is not distributed with Mercurial.

This extension is slated to be integrated into core Mercurial.

Author: Facebook, Inc.

Repository: https://bitbucket.org/facebook/hg-experimental

Web page: https://bitbucket.org/facebook/hg-experimental

2. Overview

This extension checks at commit/amend time if any of the committed files comes from an unrecorded mv.

3. Configuration

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

[extensions]
automv =

[automv]
# similaritythres = 0.75

The similaritythres parameter configures at what percentage of similarity a rename from one file to another is detected.

4. Upstreaming

  • Should be movable as-is, just 2 files (extension + tests), clean up for style guide and compatibility compliance.
  • Mark as experimental.

Facebook impact: medium; it is in active use within Facebook.


CategoryExtensionsByOthers

AutomvExtension (last edited 2016-04-12 09:25:07 by MartijnPieters)