Mercurial > hg
changeset 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 | db06c4bb2158 |
children | b48b7b130d08 |
files | mercurial/bundlerepo.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Tue Apr 03 18:20:10 2018 -0700 +++ b/mercurial/bundlerepo.py Tue Apr 03 13:16:12 2018 -0700 @@ -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."""