##// END OF EJS Templates
commands: drop files arg for commit calls
Matt Mackall -
r8704:27a103df default
parent child Browse files
Show More
@@ -645,7 +645,7 b' def commit(ui, repo, *pats, **opts):'
645 e = cmdutil.commitforceeditor
645 e = cmdutil.commitforceeditor
646
646
647 def commitfunc(ui, repo, message, match, opts):
647 def commitfunc(ui, repo, message, match, opts):
648 return repo.commit(match.files(), message, opts.get('user'),
648 return repo.commit(None, message, opts.get('user'),
649 opts.get('date'), match, editor=e, extra=extra)
649 opts.get('date'), match, editor=e, extra=extra)
650
650
651 node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
651 node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
@@ -1753,8 +1753,9 b' def import_(ui, repo, patch1, *patches, '
1753 finally:
1753 finally:
1754 files = patch.updatedir(ui, repo, files, similarity=sim/100.)
1754 files = patch.updatedir(ui, repo, files, similarity=sim/100.)
1755 if not opts.get('no_commit'):
1755 if not opts.get('no_commit'):
1756 n = repo.commit(files, message, opts.get('user') or user,
1756 m = cmdutil.matchfiles(repo, files or [])
1757 opts.get('date') or date,
1757 n = repo.commit(None, message, opts.get('user') or user,
1758 opts.get('date') or date, match=m,
1758 editor=cmdutil.commiteditor)
1759 editor=cmdutil.commiteditor)
1759 if opts.get('exact'):
1760 if opts.get('exact'):
1760 if hex(n) != nodeid:
1761 if hex(n) != nodeid:
General Comments 0
You need to be logged in to leave comments. Login now