emacs vc-region-history: uses git log -L, is there a HG equivalent?

Uwe Brauer oub at mat.ucm.es
Sun Oct 16 14:16:00 UTC 2022


> hg log has a similar option:
>  -L --line-range FILE,RANGE [+] follow line range of specified file
>                                 (EXPERIMENTAL)


I just tested it in 5.2.



Simple repository one file 4 changesets

  changeset:   3:e68f6e331045
│  Branch:      default
│  tag:         tip
│  Author:      Uwe Brauer <oub at mat.ucm.es>
│  Date:        Sun, 16 Oct 2022 10:10:55 +0200
│  Phase:       draft
│  Summary:     New subsection
│
○  changeset:   2:9f72c5eed727
│  Branch:      default
│  Author:      Uwe Brauer <oub at mat.ucm.es>
│  Date:        Sun, 16 Oct 2022 10:10:35 +0200
│  Phase:       draft
│  Summary:     Appendix
│
○  changeset:   1:5eff8d0a42a5
│  Branch:      default
│  Author:      Uwe Brauer <oub at mat.ucm.es>
│  Date:        Sun, 16 Oct 2022 10:10:20 +0200
│  Phase:       draft
│  Summary:     More stuff
│
○  changeset:   0:b95bb34118c2
   Branch:      default
   Author:      Uwe Brauer <oub at mat.ucm.es>
   Date:        Sun, 16 Oct 2022 10:10:11 +0200
   Phase:       draft
   Summary:     First commit introduction


As hg annote shows

oub 0 2022-10-16: * Introduction
oub 1 2022-10-16: 
oub 1 2022-10-16: A bit of more stuff
oub 2 2022-10-16: 
oub 3 2022-10-16: ** New subsection
oub 3 2022-10-16: 
oub 3 2022-10-16: We add a new subsection
oub 2 2022-10-16: 
oub 2 2022-10-16: * Appendix
oub 2 2022-10-16: 
oub 2 2022-10-16: We add an appendix 

The file looks as 

,----
| * Introduction
| 
| A bit of more stuff
| 
| ** New subsection
| 
| We add a new subsection
| 
| * Appendix
| 
| We add an appendix 
| 
`----



So clearly change set 2 should not be shown when running 
hg log -L new.org,1:7 --follow    

BUT

changeset:   3:e68f6e331045
tag:         tip
user:        Uwe Brauer <oub at mat.ucm.es>
date:        Sun Oct 16 10:10:55 2022 +0200
summary:     New subsection

changeset:   2:9f72c5eed727
user:        Uwe Brauer <oub at mat.ucm.es>
date:        Sun Oct 16 10:10:35 2022 +0200
summary:     Appendix

changeset:   1:5eff8d0a42a5
user:        Uwe Brauer <oub at mat.ucm.es>
date:        Sun Oct 16 10:10:20 2022 +0200
summary:     More stuff

changeset:   0:b95bb34118c2
user:        Uwe Brauer <oub at mat.ucm.es>
date:        Sun Oct 16 10:10:11 2022 +0200
summary:     First commit introduction



Which is nonsense. 


> On 10/16/22 14:22, Uwe Brauer wrote:

-- 
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. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20221016/2bb2dbe6/attachment.p7s>


More information about the Mercurial-devel mailing list