Mercurial > hg
changeset 16636:b371056ae353 stable
largefiles: follow normal codepath for addremove if non-largefiles repo (issue3249)
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Fri, 11 May 2012 14:42:26 +0200 |
parents | 9d76320d8b99 |
children | 265daefc00b2 |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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,