largefiles: follow normal codepath for addremove if non-largefiles repo (issue3249) stable
authorNa'Tosha Bard <natosha@unity3d.com>
Fri, 11 May 2012 14:42:26 +0200
branchstable
changeset 16636 b371056ae353
parent 16635 9d76320d8b99
child 16637 265daefc00b2
largefiles: follow normal codepath for addremove if non-largefiles repo (issue3249)
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Fri May 11 16:57:26 2012 +0200
+++ b/hgext/largefiles/overrides.py	Fri May 11 14:42:26 2012 +0200
@@ -912,6 +912,8 @@
             ui.status(_('largefiles: %d to upload\n') % len(toupload))
 
 def overrideaddremove(orig, ui, repo, *pats, **opts):
+    if not lfutil.islfilesrepo(repo):
+        return orig(ui, repo, *pats, **opts)
     # Get the list of missing largefiles so we can remove them
     lfdirstate = lfutil.openlfdirstate(ui, repo)
     s = lfdirstate.status(match_.always(repo.root, repo.getcwd()), [], False,