Skip to content
Snippets Groups Projects
Commit 5f846957 authored by Matt Harbison's avatar Matt Harbison
Browse files

largefiles: drop a redundant check for patterns when removing without --after

This is in the way of passing a matcher to removelargefiles().  This method is
called in exactly two places- first in overrides.addremove() (but only if the
pattern list passed to it is not empty), and second in the commands.remove()
override.  But since the latter calls commands.remove() first, which also does
this check, it isn't needed here.
parent bfce25d2
No related branches found
No related tags found
No related merge requests found
......@@ -156,8 +156,6 @@
def removelargefiles(ui, repo, isaddremove, *pats, **opts):
after = opts.get('after')
if not pats and not after:
raise util.Abort(_('no files specified'))
m = composelargefilematcher(scmutil.match(repo[None], pats, opts),
repo[None].manifest())
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment