[PATCH] largefiles: fix addremove when no largefiles are specified
Na'Tosha Bard
natosha at unity3d.com
Mon Jan 23 06:25:03 CST 2012
# HG changeset patch
# User Na'Tosha Bard <natosha at unity3d.com>
# Date 1327321472 -3600
# Node ID 22498f451b1d357fd3694e22f378886348c8c160
# Parent 878bc4a62a735a1624e9b69c672d5fb5074d4855
largefiles: fix addremove when no largefiles are specified
diff -r 878bc4a62a73 -r 22498f451b1d hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py Thu Jan 19 14:31:05 2012 -0600
+++ b/hgext/largefiles/overrides.py Mon Jan 23 13:24:32 2012 +0100
@@ -895,9 +895,10 @@
# 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)
More information about the Mercurial-devel
mailing list