[SOLVED] (was: emacs vc-region-history: uses git log -L, is there a HG equivalent?)

2022-10-16 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

>> 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.

My test was wrong, I tested it again, it works in 5.2 and also in the
emacs interface, nice!


smime.p7s
Description: S/MIME cryptographic signature
___
Mercurial-devel mailing list
Mercurial-devel@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2022-10-16 Thread Uwe Brauer

> 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 
│  Date:Sun, 16 Oct 2022 10:10:55 +0200
│  Phase:   draft
│  Summary: New subsection
│
○  changeset:   2:9f72c5eed727
│  Branch:  default
│  Author:  Uwe Brauer 
│  Date:Sun, 16 Oct 2022 10:10:35 +0200
│  Phase:   draft
│  Summary: Appendix
│
○  changeset:   1:5eff8d0a42a5
│  Branch:  default
│  Author:  Uwe Brauer 
│  Date:Sun, 16 Oct 2022 10:10:20 +0200
│  Phase:   draft
│  Summary: More stuff
│
○  changeset:   0:b95bb34118c2
   Branch:  default
   Author:  Uwe Brauer 
   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 
date:Sun Oct 16 10:10:55 2022 +0200
summary: New subsection

changeset:   2:9f72c5eed727
user:Uwe Brauer 
date:Sun Oct 16 10:10:35 2022 +0200
summary: Appendix

changeset:   1:5eff8d0a42a5
user:Uwe Brauer 
date:Sun Oct 16 10:10:20 2022 +0200
summary: More stuff

changeset:   0:b95bb34118c2
user:Uwe Brauer 
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. 


smime.p7s
Description: S/MIME cryptographic signature
___
Mercurial-devel mailing list
Mercurial-devel@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2022-10-16 Thread Pierre-Yves David

hg log has a similar option:


 -L --line-range FILE,RANGE [+] follow line range of specified file
    (EXPERIMENTAL)

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

Hi

I tried out, in a small git repository, emacs's
vc-region-history

It quite nice and useful but supports only git where it relies on
«git log -L»

I am not aware of any hg equivalent, but may be there is, or it is planned?


Regards

Uwe Brauer

___
Mercurial-devel mailing list
Mercurial-devel@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel


--
Pierre-Yves David

___
Mercurial-devel mailing list
Mercurial-devel@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2022-10-16 Thread Uwe Brauer

Hi

I tried out, in a small git repository, emacs's 
vc-region-history

It quite nice and useful but supports only git where it relies on 
«git log -L»

I am not aware of any hg equivalent, but may be there is, or it is planned?


Regards

Uwe Brauer 
-- 
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
___
Mercurial-devel mailing list
Mercurial-devel@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel