##// END OF EJS Templates
abort if explicitly committed files are not found or not tracked
Matt Mackall -
r3663:b4903deb default
parent child Browse files
Show More
@@ -418,8 +418,15 b' def commit(ui, repo, *pats, **opts):'
418 cmdutil.addremove(repo, pats, opts)
418 cmdutil.addremove(repo, pats, opts)
419 fns, match, anypats = cmdutil.matchpats(repo, pats, opts)
419 fns, match, anypats = cmdutil.matchpats(repo, pats, opts)
420 if pats:
420 if pats:
421 modified, added, removed = repo.status(files=fns, match=match)[:3]
421 status = repo.status(files=fns, match=match)
422 modified, added, removed, deleted, unknown = status[:5]
422 files = modified + added + removed
423 files = modified + added + removed
424 for f in fns:
425 if f not in modified + added + removed:
426 if f in unknown:
427 raise util.Abort(_("file %s not tracked!") % f)
428 else:
429 raise util.Abort(_("file %s not found!") % f)
423 else:
430 else:
424 files = []
431 files = []
425 try:
432 try:
General Comments 0
You need to be logged in to leave comments. Login now