version control - Mercurial walk history of specific line number -


i need walk history of mercurial using commandline (no gui tools) single line number way through history starting point. example, used git (using git blame) line 2:

git blame -l2,2 --porcelain --incremental filename.txt head  d1b92f3a9e31ca3e3ee56f0965609314fc192f22 2 2 1  (<- first 2 listed previous line number) author firstname lastname author-mail <author@domain.com> author-time 1140197028 author-tz +0000 committer firstname lastname committer-mail <author@domain.com> committer-time 1140197028 committer-tz +0000 summary commit message here previous 6bbaa283b326cde510ea3146a5fc6edd8956489a filename.txt filename filename.txt 

i need following information:

  • committer/author name
  • previous line number
  • date , time
  • previous hash

with git blame, can use information , call again specific hash , previous line number, traversing entire history of line way back.

for mercurial, found hg annotate. have following:

hg annotate -unlcv -r tip filename.txt | cat -n | sed -n 2,2p  2 firstname lastname <author@domain.com> 24741 7c36d9284795: 2: commit message here 

so good. can information need, including last hash, except i'm unsure previous line number. first 2 listed above in line "cat", second 2 listed... previous line number should following? want make absolutely sure i'm following through history correctly.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -