changeset 23887:054cfb7c33ae

largefiles: cleanup overrideadd() This was a remnant of the code prior to overridding cmdutil.add().
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 12 Jan 2015 22:30:12 -0500
parents 5ce8dcd05dc4
children 6d8bebf4d6d4
files hgext/largefiles/overrides.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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):