Mercurial > hg
changeset 36315:398e96f77aa3
largefiles: give some **opts some strkwargs love
Differential Revision: https://phab.mercurial-scm.org/D2343
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 18 Feb 2018 14:53:31 -0500 |
parents | be9c497e0bfd |
children | 759579bac31d |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Sun Feb 18 14:43:55 2018 -0500 +++ b/hgext/largefiles/overrides.py Sun Feb 18 14:53:31 2018 -0500 @@ -1238,10 +1238,11 @@ matchfn = m.matchfn m.matchfn = lambda f: f in s.deleted and matchfn(f) - removelargefiles(repo.ui, repo, True, m, **opts) + removelargefiles(repo.ui, repo, True, m, **pycompat.strkwargs(opts)) # Call into the normal add code, and any files that *should* be added as # largefiles will be - added, bad = addlargefiles(repo.ui, repo, True, matcher, **opts) + added, bad = addlargefiles(repo.ui, repo, True, matcher, + **pycompat.strkwargs(opts)) # Now that we've handled largefiles, hand off to the original addremove # function to take care of the rest. Make sure it doesn't do anything with # largefiles by passing a matcher that will ignore them.