Size: 1105
Comment:
|
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
Contents
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.