D2343: largefiles: give some **opts some strkwargs love

2018-02-18 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGac2717966335: largefiles: give some **opts some strkwargs 
love (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2343?vs=5900=5911

REVISION DETAIL
  https://phab.mercurial-scm.org/D2343

AFFECTED FILES
  hgext/largefiles/overrides.py

CHANGE DETAILS

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -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.



To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2343: largefiles: give some **opts some strkwargs love

2018-02-18 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2343

AFFECTED FILES
  hgext/largefiles/overrides.py

CHANGE DETAILS

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -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.



To: durin42, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel