##// END OF EJS Templates
typing: add a few assertions to revlog.py to help pytype...
Matt Harbison -
r49104:ebac1873 default
parent child Browse files
Show More
@@ -2581,10 +2581,15 b' class revlog(object):'
2581 2581 self._enforceinlinesize(transaction)
2582 2582 if self._docket is not None:
2583 2583 # revlog-v2 always has 3 writing handles, help Pytype
2584 assert self._writinghandles[2] is not None
2585 self._docket.index_end = self._writinghandles[0].tell()
2586 self._docket.data_end = self._writinghandles[1].tell()
2587 self._docket.sidedata_end = self._writinghandles[2].tell()
2584 wh1 = self._writinghandles[0]
2585 wh2 = self._writinghandles[1]
2586 wh3 = self._writinghandles[2]
2587 assert wh1 is not None
2588 assert wh2 is not None
2589 assert wh3 is not None
2590 self._docket.index_end = wh1.tell()
2591 self._docket.data_end = wh2.tell()
2592 self._docket.sidedata_end = wh3.tell()
2588 2593
2589 2594 nodemaputil.setup_persistent_nodemap(transaction, self)
2590 2595
General Comments 0
You need to be logged in to leave comments. Login now