Mercurial > hg
comparison mercurial/bundlerepo.py @ 37331:c68262401c8c
bundlerepo: use super() when calling file()
We should be calling the default method, not reimplementing it.
Differential Revision: https://phab.mercurial-scm.org/D3058
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 03 Apr 2018 13:16:12 -0700 |
parents | 5bc7ff103081 |
children | 1541e1a8e87d |
comparison
equal
deleted
inserted
replaced
37330:db06c4bb2158 | 37331:c68262401c8c |
---|---|
418 if f in self._cgfilespos: | 418 if f in self._cgfilespos: |
419 self._cgunpacker.seek(self._cgfilespos[f]) | 419 self._cgunpacker.seek(self._cgfilespos[f]) |
420 linkmapper = self.unfiltered().changelog.rev | 420 linkmapper = self.unfiltered().changelog.rev |
421 return bundlefilelog(self.svfs, f, self._cgunpacker, linkmapper) | 421 return bundlefilelog(self.svfs, f, self._cgunpacker, linkmapper) |
422 else: | 422 else: |
423 return filelog.filelog(self.svfs, f) | 423 return super(bundlerepository, self).file(f) |
424 | 424 |
425 def close(self): | 425 def close(self): |
426 """Close assigned bundle file immediately.""" | 426 """Close assigned bundle file immediately.""" |
427 self._bundlefile.close() | 427 self._bundlefile.close() |
428 if self.tempfile is not None: | 428 if self.tempfile is not None: |