Mercurial > evolve
diff hgext3rd/topic/topicmap.py @ 6363:f168c0fdbde9 stable
topic: copy parent branch check in commitstatus() from core
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 13 Dec 2022 20:03:23 +0400 |
parents | ad7c9c0b7a63 |
children | 3271ec128328 a87abe69a2f8 |
line wrap: on
line diff
--- a/hgext3rd/topic/topicmap.py Mon Dec 12 17:59:18 2022 +0400 +++ b/hgext3rd/topic/topicmap.py Tue Dec 13 20:03:23 2022 +0400 @@ -110,8 +110,9 @@ return ret parents = ctx.parents() - if (not opts.get(b'amend') and bheads and node not in bheads and not - [x for x in parents if x.node() in bheads and x.branch() == branch]): + if (not opts.get(b'amend') and bheads and node not in bheads and not any( + p.node() in bheads and p.branch() == branch for p in parents + )): repo.ui.status(_(b"(consider using topic for lightweight branches." b" See 'hg help topic')\n"))