hgext/convert/hg.py
changeset 49866 2ac60a71c240
parent 48914 417a1691a273
child 51014 ed65e97db7bc
equal deleted inserted replaced
49865:5392bf258049 49866:2ac60a71c240
   606         parents = self._parents(ctx)
   606         parents = self._parents(ctx)
   607         if full or not parents:
   607         if full or not parents:
   608             files = copyfiles = ctx.manifest()
   608             files = copyfiles = ctx.manifest()
   609         if parents:
   609         if parents:
   610             if self._changescache[0] == rev:
   610             if self._changescache[0] == rev:
   611                 ma, r = self._changescache[1]
   611                 # TODO: add type hints to avoid this warning, instead of
       
   612                 #  suppressing it:
       
   613                 #     No attribute '__iter__' on None [attribute-error]
       
   614                 ma, r = self._changescache[1]  # pytype: disable=attribute-error
   612             else:
   615             else:
   613                 ma, r = self._changedfiles(parents[0], ctx)
   616                 ma, r = self._changedfiles(parents[0], ctx)
   614             if not full:
   617             if not full:
   615                 files = ma + r
   618                 files = ma + r
   616             copyfiles = ma
   619             copyfiles = ma