comparison hgext3rd/topic/server.py @ 5150:e0c091b199bc stable

topic: extend topic gating to descendant If a changeset with topic as descendant without topic, we need to exclude them too when using: topic.server-gate-topic-changesets.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 04 Mar 2020 17:08:05 +0100
parents 366f6e4108d6
children 515d425c0a05
comparison
equal deleted inserted replaced
5149:3f40b39d091e 5150:e0c091b199bc
48 extrafiltered = set() 48 extrafiltered = set()
49 for r in consider: 49 for r in consider:
50 if cl.changelogrevision(r).extra.get(constants.extrakey, b''): 50 if cl.changelogrevision(r).extra.get(constants.extrakey, b''):
51 extrafiltered.add(r) 51 extrafiltered.add(r)
52 if extrafiltered: 52 if extrafiltered:
53 extrafiltered = set(repo.revs('%ld::%ld', extrafiltered, consider))
53 filteredrevs = frozenset(filteredrevs | extrafiltered) 54 filteredrevs = frozenset(filteredrevs | extrafiltered)
54 return filteredrevs 55 return filteredrevs
55 56
56 def wireprotocommand(name, args=b'', permission=b'pull'): 57 def wireprotocommand(name, args=b'', permission=b'pull'):
57 try: 58 try: