[PATCH 4 of 4] largefiles: cleanup overrideadd()
Matt Harbison
mharbison72 at gmail.com
Thu Jan 15 21:39:56 CST 2015
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1421119812 18000
# Mon Jan 12 22:30:12 2015 -0500
# Node ID 3282db289c9ef93575c68100c107c39c834e5061
# Parent 46fd3fdff1e68afbc4b66ed1960d696ed5e67124
largefiles: cleanup overrideadd()
This was a remnant of the code prior to overridding cmdutil.add().
diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -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):
More information about the Mercurial-devel
mailing list