largefiles: follow normal codepath for addremove if non-largefiles repo (
issue3249)
--- 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,