Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 6600:b822a379860b
match: stop passing files through commitfunc
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | cd4db3999ef9 |
children | a57a27b12965 |
comparison
equal
deleted
inserted
replaced
6599:cd4db3999ef9 | 6600:b822a379860b |
---|---|
560 If no commit message is specified, the configured editor is started to | 560 If no commit message is specified, the configured editor is started to |
561 enter a message. | 561 enter a message. |
562 | 562 |
563 See 'hg help dates' for a list of formats valid for -d/--date. | 563 See 'hg help dates' for a list of formats valid for -d/--date. |
564 """ | 564 """ |
565 def commitfunc(ui, repo, files, message, match, opts): | 565 def commitfunc(ui, repo, message, match, opts): |
566 return repo.commit(files, message, opts['user'], opts['date'], match, | 566 return repo.commit(match.files(), message, opts['user'], opts['date'], |
567 force_editor=opts.get('force_editor')) | 567 match, force_editor=opts.get('force_editor')) |
568 | 568 |
569 node = cmdutil.commit(ui, repo, commitfunc, pats, opts) | 569 node = cmdutil.commit(ui, repo, commitfunc, pats, opts) |
570 if not node: | 570 if not node: |
571 return | 571 return |
572 cl = repo.changelog | 572 cl = repo.changelog |