##// END OF EJS Templates
largefiles: extract 'orig' method in lfilesmanifestdict.__contains__
Martin von Zweigbergk -
r22516:5e27eccb default
parent child Browse files
Show More
@@ -37,11 +37,8 b' def reposetup(ui, repo):'
37 37 if self.lfstatus:
38 38 class lfilesmanifestdict(manifest.manifestdict):
39 39 def __contains__(self, filename):
40 if super(lfilesmanifestdict,
41 self).__contains__(filename):
42 return True
43 return super(lfilesmanifestdict,
44 self).__contains__(lfutil.standin(filename))
40 orig = super(lfilesmanifestdict, self).__contains__
41 return orig(filename) or orig(lfutil.standin(filename))
45 42 class lfilesctx(ctx.__class__):
46 43 def files(self):
47 44 filenames = super(lfilesctx, self).files()
General Comments 0
You need to be logged in to leave comments. Login now