how to find all merges into the default branch

Uwe Brauer oub at mat.ucm.es
Sat Feb 10 16:19:31 UTC 2024



Hi all

I would like to find out the changesets in which merges occurred.


I found 
https://www.reddit.com/r/mercurial/comments/10zd5q/how_to_find_all_branches_that_has_been_merged_in/

Which might be a bit too old

The repository in question is a git repository imported to mercurial via
hg-git git://git.savannah.gnu.org/auctex.git 

So the merges are basically all on the default branch using bookmarks
the start of the graph looks like


○  changeset:     8381:534071060884
│  Branch:        default
│  Author:        Ikumi Keita <ikumi at ikumi.que.jp>
│  Date:          Sun, 21 Jan 2024 15:34:53 +0900
│  Phase:         public
│  Summary:       ; * doc/changes.texi: Reshape the new entries.
│
○  changeset:     8380:c861cd81ffb7
│╲   Branch:        default
│ │  Author:        Ikumi Keita <ikumi at ikumi.que.jp>
│ │  Date:          Sun, 21 Jan 2024 15:29:01 +0900
│ │  Phase:         public
│ │  Summary:       Merge branch 'feature/fix-mode-names-overlap'
│ │


So I tried 

merged = log -G -r "head()-parents(merge())-closed()-tag(tip)" 

merged = log -G -r "head()-parents(merge())-tag(tip)" 

But I see 
  changeset:   7489:3c292ae41384
│  bookmark:    core-latex-in-style-hooks
╧  tag:         default/core-latex-in-style-hooks
   user:        Tassilo Horn <tsdh at gnu.org>
   date:        Tue Jun 16 22:02:02 2020 +0200
   summary:     Run LaTeX-core style hook in latex2 and latex2e hook

○  changeset:   6696:2712881b091c
│╲   bookmark:    simplify-TeX-parse-error
╧ ╧  tag:         default/simplify-TeX-parse-error
     parent:      6686:1b8ed9c58e49
     parent:      6695:80948ef561c8
     user:        Tassilo Horn <tsdh at gnu.org>
     date:        Sun Jan 31 08:17:25 2016 +0100
     summary:     Merge branch 'master' into simplify-TeX-parse-error

But not the merge I just described. 

Any idea what to do?

Thanks 

Uwe Brauer

-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 



More information about the Mercurial mailing list