[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[there is hg log -L] (was: [vc-region-history in HG])
From: |
Uwe Brauer |
Subject: |
[there is hg log -L] (was: [vc-region-history in HG]) |
Date: |
Sun, 16 Oct 2022 15:58:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "DM" == Daniel Martín <mardani29@yahoo.es> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>>
>> I just realized that vc-region-history does not work in hg, in the sense
>> that it just shows the changes in the whole buffer, while it works for
>> git. I looked briefly at the code and could not find any special calls
>> to git there.
>>
>> Any idea what could be the reason (not that there are very many HG users
>> on this list...)?
> In a git repository, the function delegates to the backend function
> vc-git-region-history, which calls "git log -L" (requires git 1.8.4+).
> If this cheatsheet is accurate,
> https://hyperpolyglot.org/version-control, there is no direct Mercurial
> alternative to git log -L ("commits which touched lines").
I just learned, that at least for mercurial version => 5.2
hg help log --verbose
Tells me
-L --line-range FILE,RANGE [+] follow line range of specified file
(EXPERIMENTAL)
So it should work, shouldn't it?
Regards
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
smime.p7s
Description: S/MIME cryptographic signature
- A vc wish: vc-timemachine, John Yates, 2022/10/15
- Re: A vc wish: vc-timemachine, John Yates, 2022/10/16
- Re: A vc wish: vc-timemachine, Dmitry Gutov, 2022/10/16
- Re: A vc wish: vc-timemachine, John Yates, 2022/10/16
- Re: A vc wish: vc-timemachine, Juri Linkov, 2022/10/17
- Re: A vc wish: vc-timemachine, John Yates, 2022/10/17
- Re: A vc wish: vc-timemachine, John Yates, 2022/10/17
- Re: A vc wish: vc-timemachine, Richard Stallman, 2022/10/18
- Re: A vc wish: vc-timemachine, John Yates, 2022/10/18
- Re: A vc wish: vc-timemachine, Richard Stallman, 2022/10/21