[PATCH 1 of 3] largefiles: drop unused 'pats' parameter from getstandinmatcher()
Martin von Zweigbergk
martinvonz at google.com
Tue May 26 20:09:25 UTC 2015
# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1432658808 25200
# Tue May 26 09:46:48 2015 -0700
# Node ID 1d23fb0cd645e44362b54bba31e15d7655df997b
# Parent 6ac860f700b5cfeda232d5305963047696b869ca
largefiles: drop unused 'pats' parameter from getstandinmatcher()
The parameter wasn't used even when it was imported from elsewhere in
cfccd3bee7b3 (hgext: add largefiles extension, 2011-09-24).
diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -238,7 +238,7 @@
if path:
link(storepath(repo, hash), path)
-def getstandinmatcher(repo, pats=[], opts={}):
+def getstandinmatcher(repo, pats=[]):
'''Return a match object that applies pats to the standin directory'''
standindir = repo.wjoin(shortname)
if pats:
@@ -247,7 +247,7 @@
# no patterns: relative to repo root
pats = [standindir]
# no warnings about missing files or directories
- match = scmutil.match(repo[None], pats, opts)
+ match = scmutil.match(repo[None], pats)
match.bad = lambda f, msg: None
return match
More information about the Mercurial-devel
mailing list