comparison tests/test-parents.t @ 22787:4a13849ca359

manifest: simplify manifest.add() by making args required I verified that changed was never false (it was always a 2-tuple) by adding @@ -220,6 +225,8 @@ class manifest(revlog.revlog): def add(self, map, transaction, link, p1=None, p2=None, changed=None): + if not changed: + assert False, 'changed was %r' % changed # if we're using the cache, make sure it is valid and # parented by the same node we're diffing against if not (changed and p1 and (p1 in self._mancache)): and observing that the test suite still passed. Making all the arguments required should help future readers understand what's going on here.
author Augie Fackler <raf@durin42.com>
date Wed, 08 Oct 2014 11:52:30 -0400
parents ef60083b5536
children 4441705b7111
comparison
equal deleted inserted replaced
22786:079a0ed5ee4a 22787:4a13849ca359