comparison hgext3rd/topic/topicmap.py @ 4192:e527df0f2a68 stable

topic: add the changelog argument to branchinfo() 47c03042cd1d in core added a changelog argument to revbranchcache.branchinfo() and we wrap that function in topic extension. So let's add this optional argument in topic extension too.
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sun, 21 Oct 2018 00:08:27 +0300
parents f7129e3d5a38
children c6d1b0a6babe 9b0cde5efbc9
comparison
equal deleted inserted replaced
4191:5c734be63c3e 4192:e527df0f2a68
201 if not istopicfilter(repo.filtername): 201 if not istopicfilter(repo.filtername):
202 return super(_topiccache, self).update(repo, revgen) 202 return super(_topiccache, self).update(repo, revgen)
203 unfi = repo.unfiltered() 203 unfi = repo.unfiltered()
204 oldgetbranchinfo = unfi.revbranchcache().branchinfo 204 oldgetbranchinfo = unfi.revbranchcache().branchinfo
205 205
206 def branchinfo(r): 206 def branchinfo(r, changelog=None):
207 info = oldgetbranchinfo(r) 207 info = oldgetbranchinfo(r)
208 topic = '' 208 topic = ''
209 ctx = unfi[r] 209 ctx = unfi[r]
210 if ctx.mutable(): 210 if ctx.mutable():
211 topic = ctx.topic() 211 topic = ctx.topic()