Skip to content

🕵 Interactive mode for hg blame that traces when a particular line was introduced - not just when it was last edited

License

Notifications You must be signed in to change notification settings

dmnd/hg-blametrail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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
<manually inspect file to find changeset line was last modified in>
hg up <changeset>
hg blame -n some/file.py
<manually inspect file to find changeset line was last modified in>
hg up <changeset>
hg blame -n some/file.py
<manually inspect file to find changeset line was last modified in>
hg up <changeset>
...

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

About

🕵 Interactive mode for hg blame that traces when a particular line was introduced - not just when it was last edited

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages