2200 matcher = scmutil.match(repo[None], pats, opts) |
2200 matcher = scmutil.match(repo[None], pats, opts) |
2201 |
2201 |
2202 # extract addremove carefully -- this function can be called from a command |
2202 # extract addremove carefully -- this function can be called from a command |
2203 # that doesn't support addremove |
2203 # that doesn't support addremove |
2204 if opts.get('addremove'): |
2204 if opts.get('addremove'): |
2205 scmutil.addremove(repo, matcher, opts) |
2205 if scmutil.addremove(repo, matcher, opts) != 0: |
|
2206 raise util.Abort( |
|
2207 _("failed to mark all new/missing files as added/removed")) |
2206 |
2208 |
2207 return commitfunc(ui, repo, message, matcher, opts) |
2209 return commitfunc(ui, repo, message, matcher, opts) |
2208 |
2210 |
2209 def amend(ui, repo, commitfunc, old, extra, pats, opts): |
2211 def amend(ui, repo, commitfunc, old, extra, pats, opts): |
2210 # amend will reuse the existing user if not specified, but the obsolete |
2212 # amend will reuse the existing user if not specified, but the obsolete |