# HG changeset patch # User Pierre-Yves David # Date 1494608746 -7200 # Node ID 078549a71ce4476d926f1671e21f01f152d7680c # Parent fed22455e5105ff2349b707ae6c6a79f13fd7b4f obscache: move an assert to a lower level diff -r fed22455e510 -r 078549a71ce4 hgext3rd/evolve/obscache.py --- a/hgext3rd/evolve/obscache.py Fri May 12 19:04:13 2017 +0200 +++ b/hgext3rd/evolve/obscache.py Fri May 12 19:05:46 2017 +0200 @@ -287,7 +287,6 @@ if revs: self._updaterevs(repo, revs) - assert len(self._data) == len(cl), (len(self._data), len(cl)) if obsmarkers: self._updatemarkers(repo, obsmarkers) @@ -330,6 +329,8 @@ else: val = 0 self._data.append(val) + cl = repo.changelog + assert len(self._data) == len(cl), (len(self._data), len(cl)) def _updatemarkers(self, repo, obsmarkers): """update the cache with new markers"""