# HG changeset patch # User Na'Tosha Bard # Date 2012-01-23 12:24:32 # Node ID 295f8aeab3631bad2c0134605faf24b836717773 # Parent 610c4434973b9a5086d5853b69febd4cebc81a4d largefiles: fix addremove when no largefiles are specified diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -900,9 +900,10 @@ def override_addremove(orig, ui, repo, * # to have handled by original addremove. Monkey patching here makes sure # we don't remove the standin in the largefiles code, preventing a very # confused state later. - repo._isaddremove = True - remove_largefiles(ui, repo, *missing, **opts) - repo._isaddremove = False + if missing: + repo._isaddremove = True + remove_largefiles(ui, repo, *missing, **opts) + repo._isaddremove = False # Call into the normal add code, and any files that *should* be added as # largefiles will be add_largefiles(ui, repo, *pats, **opts)