diff -r 2e8eeb5bf29b -r e7f1be4bf40a mercurial/commands.py --- a/mercurial/commands.py Fri Jan 25 16:24:00 2008 -0800 +++ b/mercurial/commands.py Fri Jan 25 19:49:15 2008 -0500 @@ -1529,7 +1529,8 @@ finally: files = patch.updatedir(ui, repo, files) if not opts.get('no_commit'): - n = repo.commit(files, message, user, date) + n = repo.commit(files, message, opts.get('user') or user, + opts.get('date') or date) if opts.get('exact'): if hex(n) != nodeid: repo.rollback() @@ -2901,8 +2902,9 @@ ('', 'exact', None, _('apply patch to the nodes from which it was generated')), ('', 'import-branch', None, - _('Use any branch information in patch (implied by --exact)'))] + commitopts, - _('hg import [-p NUM] [-m MESSAGE] [-f] PATCH...')), + _('Use any branch information in patch (implied by --exact)'))] + + commitopts + commitopts2, + _('hg import [OPTION]... PATCH...')), "incoming|in": (incoming, [('M', 'no-merges', None, _('do not show merges')),