Patchwork [10,of,12,misc,largefiles] largefiles: remove dummy assignments for creating an already existing closure

login
register
mail settings
Submitter Mads Kiilerich
Date April 13, 2014, 4:59 p.m.
Message ID <51a02e6595d6d15966bf.1397408353@localhost.localdomain>
Download mbox | patch
Permalink /patch/4326/
State Accepted
Commit 71cd8b795cceabe4696d388c3367e9601343bddb
Headers show

Comments

Mads Kiilerich - April 13, 2014, 4:59 p.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1397407543 -7200
#      Sun Apr 13 18:45:43 2014 +0200
# Node ID 51a02e6595d6d15966bfaa54e3132cf5f574fa2a
# Parent  fb681a874db6c991e93decb5bd4076bde76c3208
largefiles: remove dummy assignments for creating an already existing closure

Patch

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -25,7 +25,6 @@  import basestore
 
 def installnormalfilesmatchfn(manifest):
     '''installmatchfn with a matchfn that ignores all largefiles'''
-    oldmatch = None # for the closure
     def overridematch(ctx, pats=[], opts={}, globbed=False,
             default='relpath'):
         match = oldmatch(ctx, pats, opts, globbed, default)
@@ -492,7 +491,6 @@  def overridecopy(orig, ui, repo, pats, o
             wlock = repo.wlock()
 
             manifest = repo[None].manifest()
-            oldmatch = None # for the closure
             def overridematch(ctx, pats=[], opts={}, globbed=False,
                     default='relpath'):
                 newpats = []
@@ -601,7 +599,6 @@  def overriderevert(orig, ui, repo, *pats
 
         try:
             ctx = scmutil.revsingle(repo, opts.get('rev'))
-            oldmatch = None # for the closure
             def overridematch(ctx, pats=[], opts={}, globbed=False,
                     default='relpath'):
                 match = oldmatch(ctx, pats, opts, globbed, default)