# HG changeset patch # User Matt Harbison # Date 1421119812 18000 # Node ID 054cfb7c33aee2bc80a029d04a309dd61dcf8955 # Parent 5ce8dcd05dc44df9c05f782946838bc5ffa35399 largefiles: cleanup overrideadd() This was a remnant of the code prior to overridding cmdutil.add(). diff -r 5ce8dcd05dc4 -r 054cfb7c33ae hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Mon Jan 12 21:44:43 2015 -0500 +++ b/hgext/largefiles/overrides.py Mon Jan 12 22:30:12 2015 -0500 @@ -243,10 +243,8 @@ # -- Wrappers: modify existing commands -------------------------------- def overrideadd(orig, ui, repo, *pats, **opts): - normal = opts.get('normal') - if normal: - if opts.get('large'): - raise util.Abort(_('--normal cannot be used with --large')) + if opts.get('normal') and opts.get('large'): + raise util.Abort(_('--normal cannot be used with --large')) return orig(ui, repo, *pats, **opts) def cmdutiladd(orig, ui, repo, matcher, prefix, explicitonly, **opts):