Mercurial > hg > mercurial-source
changeset 38117: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 | db06c4bb2158 |
children | b48b7b130d08 |
files | mercurial/bundlerepo.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -420,7 +420,7 @@ linkmapper = self.unfiltered().changelog.rev return bundlefilelog(self.svfs, f, self._cgunpacker, linkmapper) else: - return filelog.filelog(self.svfs, f) + return super(bundlerepository, self).file(f) def close(self): """Close assigned bundle file immediately."""