https://github.com/dmnd/hg-blametrail
🕵 Interactive mode for hg blame that traces when a particular line was introduced - not just when it was last edited
https://github.com/dmnd/hg-blametrail
blame diff hg mercurial
Last synced: over 1 year ago
JSON representation
🕵 Interactive mode for hg blame that traces when a particular line was introduced - not just when it was last edited
- Host: GitHub
- URL: https://github.com/dmnd/hg-blametrail
- Owner: dmnd
- License: wtfpl
- Created: 2013-03-01T23:24:31.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T22:43:52.000Z (over 9 years ago)
- Last Synced: 2025-04-01T20:31:32.220Z (over 1 year ago)
- Topics: blame, diff, hg, mercurial
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Mercurial Blame Trail
=====================
An interactive mode for `hg blame` that helps you trace when a particular line
was introduced - not just when it was last edited.
Essentially it automates this process:
hg blame -n some/file.py
hg up
hg blame -n some/file.py
hg up
hg blame -n some/file.py
hg up
...
Usage
-----
This extension adds a couple of options to `hg blame`:
* `--trail` which should be given a line number, and activates the
interactive mode
* `--context` the number of lines to display before and after the line being
traced
Example of tracing line 116 of a file, with a context of 2:
$ hg blame --trail 116 some/file.py --context=2
Install
-------
Add the following to your `.hgrc`:
[extensions]
blametrail = /path/to/hg-blametrail/blametrail.py