largefiles: cleanup overrideadd()
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 12 Jan 2015 22:30:12 -0500
changeset 23887 054cfb7c33ae
parent 23886 5ce8dcd05dc4
child 23888 6d8bebf4d6d4
largefiles: cleanup overrideadd() This was a remnant of the code prior to overridding cmdutil.add().
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):