An open API service indexing awesome lists of open source software.

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

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