largefiles: don't explicitly list optional parameters that are not used
This makes it easier for changes to the API.
--- a/hgext/largefiles/overrides.py Mon Feb 08 14:07:17 2016 +0100
+++ b/hgext/largefiles/overrides.py Mon Feb 22 23:18:19 2016 -0800
@@ -452,12 +452,10 @@
# writing the files into the working copy and lfcommands.updatelfiles
# will update the largefiles.
def overridecalculateupdates(origfn, repo, p1, p2, pas, branchmerge, force,
- acceptremote, followcopies, matcher=None,
- mergeforce=False):
+ acceptremote, *args, **kwargs):
overwrite = force and not branchmerge
actions, diverge, renamedelete = origfn(
- repo, p1, p2, pas, branchmerge, force, acceptremote,
- followcopies, matcher=matcher)
+ repo, p1, p2, pas, branchmerge, force, acceptremote, *args, **kwargs)
if overwrite:
return actions, diverge, renamedelete