diff -r f9efb325ea32 -r f19d5c852f9b hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Fri Jan 20 11:56:12 2012 +0100 +++ b/hgext/largefiles/overrides.py Fri Dec 02 18:20:32 2011 +0100 @@ -179,6 +179,11 @@ # matcher which matches only the normal files and runs the original # version of add. def override_add(orig, ui, repo, *pats, **opts): + normal = opts.pop('normal') + if normal: + if opts.get('large'): + raise util.Abort(_('--normal cannot be used with --large')) + return orig(ui, repo, *pats, **opts) bad = add_largefiles(ui, repo, *pats, **opts) installnormalfilesmatchfn(repo[None].manifest()) result = orig(ui, repo, *pats, **opts)