Mercurial > evolve
diff hgext3rd/topic/discovery.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 | 119fced5a891 |
children | cae466b70bf1 |
line wrap: on
line diff
--- a/hgext3rd/topic/discovery.py Thu Oct 18 22:11:43 2018 -0700 +++ b/hgext3rd/topic/discovery.py Sun Oct 21 00:08:27 2018 +0300 @@ -81,9 +81,11 @@ def revbranchcache(self): rbc = super(repocls, self).revbranchcache() - changelog = self.changelog + localchangelog = self.changelog - def branchinfo(rev): + def branchinfo(rev, changelog=None): + if changelog is None: + changelog = localchangelog branch, close = changelog.branchinfo(rev) if rev in publishedset: return branch, close