changeset 35920:6bd2846a82e8

lfs: drop an unused function parameter
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 30 Jan 2018 20:33:21 -0500
parents 6c1d3779c052
children fa993c3c8462
files hgext/lfs/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/lfs/__init__.py	Thu Feb 01 10:10:01 2018 -0800
+++ b/hgext/lfs/__init__.py	Tue Jan 30 20:33:21 2018 -0500
@@ -211,7 +211,7 @@
     class lfsrepo(repo.__class__):
         @localrepo.unfilteredmethod
         def commitctx(self, ctx, error=False):
-            repo.svfs.options['lfstrack'] = _trackedmatcher(self, ctx)
+            repo.svfs.options['lfstrack'] = _trackedmatcher(self)
             return super(lfsrepo, self).commitctx(ctx, error)
 
     repo.__class__ = lfsrepo
@@ -238,7 +238,7 @@
     else:
         repo.prepushoutgoinghooks.add('lfs', wrapper.prepush)
 
-def _trackedmatcher(repo, ctx):
+def _trackedmatcher(repo):
     """Return a function (path, size) -> bool indicating whether or not to
     track a given file with lfs."""
     if not repo.wvfs.exists('.hglfs'):