bundlerepo: use super() when calling file()
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 03 Apr 2018 13:16:12 -0700
changeset 37331 c68262401c8c
parent 37330 db06c4bb2158
child 37332 b48b7b130d08
bundlerepo: use super() when calling file() We should be calling the default method, not reimplementing it. Differential Revision: https://phab.mercurial-scm.org/D3058
mercurial/bundlerepo.py
--- 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."""