changeset 15967:295f8aeab363 stable

largefiles: fix addremove when no largefiles are specified
author Na'Tosha Bard <natosha@unity3d.com>
date Mon, 23 Jan 2012 13:24:32 +0100
parents 610c4434973b
children bf87b6b95ce5
files hgext/largefiles/overrides.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Fri Jan 20 23:52:31 2012 -0600
+++ b/hgext/largefiles/overrides.py	Mon Jan 23 13:24:32 2012 +0100
@@ -900,9 +900,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)