Version control 特定线号的Mercurial walk历史记录
我需要使用命令行(没有GUI工具)来浏览Mercurial的历史,从历史一直追溯到起点。作为一个例子,我将其用于Git(使用)第2行:Version control 特定线号的Mercurial walk历史记录,version-control,mercurial,history,annotate,Version Control,Mercurial,History,Annotate,我需要使用命令行(没有GUI工具)来浏览Mercurial的历史,从历史一直追溯到起点。作为一个例子,我将其用于Git(使用)第2行: git blame -L2,2 --porcelain --incremental Filename.txt HEAD d1b92f3a9e31ca3e3ee56f0965609314fc192f22 2 2 1 (<- the first 2 listed is the previous line number) author Firstname L
git blame -L2,2 --porcelain --incremental Filename.txt HEAD
d1b92f3a9e31ca3e3ee56f0965609314fc192f22 2 2 1 (<- the first 2 listed is the 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
git-L2,2--ceral--incremental Filename.txt头
D1B92F3A9E31CA3EE56F0965609314FC192F22(行号或行内容很重要?对。Git通过确定前一行是什么来解决这个问题,即使它被更改为不同的行。如果可能的话,我希望在这里使用相同的功能。
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