comparison hgext3rd/topic/revset.py @ 5532:5a70669beaa3

branching: merge with stable
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 08 Sep 2020 11:56:17 +0800
parents e5406605d8f5 95478db35f88
children f27ef537bf83
comparison
equal deleted inserted replaced
5518:af835b32e155 5532:5a70669beaa3
65 s = revset.getset(repo, revset.fullreposet(repo), x) 65 s = revset.getset(repo, revset.fullreposet(repo), x)
66 topics = {repo[r].topic() for r in s} 66 topics = {repo[r].topic() for r in s}
67 topics.discard(b'') 67 topics.discard(b'')
68 68
69 def matches(r): 69 def matches(r):
70 if r in s:
71 return True
72 topic = repo[r].topic() 70 topic = repo[r].topic()
73 if not topic: 71 if not topic:
74 return False 72 return False
75 return topic in topics 73 return topic in topics
76 74