Patchwork [1,of,2,RESEND] lfs: drop an unused function parameter

login
register
mail settings
Submitter Matt Harbison
Date Feb. 2, 2018, 1:29 a.m.
Message ID <0088fad7fa84a6ec6686.1517534968@Envy>
Download mbox | patch
Permalink /patch/27210/
State Accepted
Headers show

Comments

Matt Harbison - Feb. 2, 2018, 1:29 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1517362401 18000
#      Tue Jan 30 20:33:21 2018 -0500
# Node ID 0088fad7fa84a6ec668682e137273e252bc7441c
# Parent  f1a0933ce59e809f190602655e22ae6ec107c397
lfs: drop an unused function parameter

Patch

diff --git a/hgext/lfs/__init__.py b/hgext/lfs/__init__.py
--- a/hgext/lfs/__init__.py
+++ b/hgext/lfs/__init__.py
@@ -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'):