Mercurial > hg
changeset 21954:838025b15925 stable
merge with i18n
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 30 Jul 2014 14:51:56 -0500 |
parents | 3838b910fa6b (diff) 5341c500adf0 (current diff) |
children | 6dfb78f18bdb 8ea921bf1c47 |
files | |
diffstat | 8 files changed, 40 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/fetch.py Tue Jul 29 19:29:02 2014 -0300 +++ b/hgext/fetch.py Wed Jul 30 14:51:56 2014 -0500 @@ -19,7 +19,7 @@ @command('fetch', [('r', 'rev', [], _('a specific revision you would like to pull'), _('REV')), - ('e', 'edit', None, _('edit commit message')), + ('e', 'edit', None, _('invoke editor on commit messages')), ('', 'force-editor', None, _('edit commit message (DEPRECATED)')), ('', 'switch-parent', None, _('switch parents when merging')), ] + commands.commitopts + commands.commitopts2 + commands.remoteopts,
--- a/hgext/gpg.py Tue Jul 29 19:29:02 2014 -0300 +++ b/hgext/gpg.py Wed Jul 30 14:51:56 2014 -0500 @@ -203,7 +203,7 @@ ('k', 'key', '', _('the key id to sign with'), _('ID')), ('m', 'message', '', - _('commit message'), _('TEXT')), + _('use text as commit message'), _('TEXT')), ('e', 'edit', False, _('invoke editor on commit messages')), ] + commands.commitopts2, _('hg sign [OPTION]... [REV]...'))
--- a/hgext/histedit.py Tue Jul 29 19:29:02 2014 -0300 +++ b/hgext/histedit.py Wed Jul 30 14:51:56 2014 -0500 @@ -158,6 +158,7 @@ from mercurial import hg from mercurial import node from mercurial import repair +from mercurial import scmutil from mercurial import util from mercurial import obsolete from mercurial import merge as mergemod @@ -567,11 +568,11 @@ remote = None root = findoutgoing(ui, repo, remote, force, opts) else: - rootrevs = list(repo.set('roots(%lr)', revs)) - if len(rootrevs) != 1: + rr = list(repo.set('roots(%ld)', scmutil.revrange(repo, revs))) + if len(rr) != 1: raise util.Abort(_('The specified revisions must have ' 'exactly one common root')) - root = rootrevs[0].node() + root = rr[0].node() keep = opts.get('keep', False) revs = between(repo, root, topmost, keep)
--- a/hgext/mq.py Tue Jul 29 19:29:02 2014 -0300 +++ b/hgext/mq.py Wed Jul 30 14:51:56 2014 -0500 @@ -2407,7 +2407,7 @@ opts['date'] = "%d %d" % util.makedate() @command("^qnew", - [('e', 'edit', None, _('edit commit message')), + [('e', 'edit', None, _('invoke editor on commit messages')), ('f', 'force', None, _('import uncommitted changes (DEPRECATED)')), ('g', 'git', None, _('use git extended diff format')), ('U', 'currentuser', None, _('add "From: <current user>" to patch')), @@ -2453,7 +2453,7 @@ return 0 @command("^qrefresh", - [('e', 'edit', None, _('edit commit message')), + [('e', 'edit', None, _('invoke editor on commit messages')), ('g', 'git', None, _('use git extended diff format')), ('s', 'short', None, _('refresh only files already in the patch and specified files')), @@ -2523,7 +2523,7 @@ return 0 @command('qfold', - [('e', 'edit', None, _('edit patch header')), + [('e', 'edit', None, _('invoke editor on commit messages')), ('k', 'keep', None, _('keep folded patch files')), ] + commands.commitopts, _('hg qfold [-e] [-k] [-m TEXT] [-l FILE] PATCH...'))
--- a/mercurial/commands.py Tue Jul 29 19:29:02 2014 -0300 +++ b/mercurial/commands.py Wed Jul 30 14:51:56 2014 -0500 @@ -1339,8 +1339,7 @@ _('mark a branch as closed, hiding it from the branch list')), ('', 'amend', None, _('amend the parent of the working dir')), ('s', 'secret', None, _('use the secret phase for committing')), - ('e', 'edit', None, - _('further edit commit message already specified')), + ('e', 'edit', None, _('invoke editor on commit messages')), ] + walkopts + commitopts + commitopts2 + subrepoopts, _('[OPTION]... [FILE]...'), inferrepo=True) @@ -5695,8 +5694,8 @@ ('r', 'rev', '', _('revision to tag'), _('REV')), ('', 'remove', None, _('remove a tag')), # -l/--local is already there, commitopts cannot be used - ('e', 'edit', None, _('edit commit message')), - ('m', 'message', '', _('use <text> as commit message'), _('TEXT')), + ('e', 'edit', None, _('invoke editor on commit messages')), + ('m', 'message', '', _('use text as commit message'), _('TEXT')), ] + commitopts2, _('[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...')) def tag(ui, repo, name1, *names, **opts):
--- a/tests/test-histedit-commute.t Tue Jul 29 19:29:02 2014 -0300 +++ b/tests/test-histedit-commute.t Wed Jul 30 14:51:56 2014 -0500 @@ -324,6 +324,30 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: a +Verify that revsetalias entries work with histedit: + $ cat >> $HGRCPATH <<EOF + > [revsetalias] + > grandparent(ARG) = p1(p1(ARG)) + > EOF + $ echo extra commit >> c + $ hg ci -m 'extra commit to c' + $ HGEDITOR=cat hg histedit 'grandparent(.)' + pick ece0b8d93dda 6 c + pick 803ef1c6fcfd 7 e + pick 9c863c565126 8 extra commit to c + + # Edit history between ece0b8d93dda and 9c863c565126 + # + # Commits are listed from least to most recent + # + # Commands: + # p, pick = use commit + # e, edit = use commit, but stop for amending + # f, fold = use commit, but combine it with the one above + # d, drop = remove commit from history + # m, mess = edit message without changing commit content + # + 0 files updated, 0 files merged, 0 files removed, 0 files unresolved should also work if a commit message is missing $ BUNDLE="$TESTDIR/missing-comment.hg"
--- a/tests/test-mq-qrefresh-interactive.t Tue Jul 29 19:29:02 2014 -0300 +++ b/tests/test-mq-qrefresh-interactive.t Wed Jul 30 14:51:56 2014 -0500 @@ -31,7 +31,7 @@ options: - -e --edit edit commit message + -e --edit invoke editor on commit messages -g --git use git extended diff format -s --short refresh only files already in the patch and specified files @@ -75,7 +75,7 @@ options: - -e --edit edit commit message + -e --edit invoke editor on commit messages -g --git use git extended diff format -s --short refresh only files already in the patch and specified files
--- a/tests/test-qrecord.t Tue Jul 29 19:29:02 2014 -0300 +++ b/tests/test-qrecord.t Wed Jul 30 14:51:56 2014 -0500 @@ -62,7 +62,7 @@ list --amend amend the parent of the working dir -s --secret use the secret phase for committing - -e --edit further edit commit message already specified + -e --edit invoke editor on commit messages -I --include PATTERN [+] include names matching the given patterns -X --exclude PATTERN [+] exclude names matching the given patterns -m --message TEXT use text as commit message @@ -135,7 +135,7 @@ options: - -e --edit edit commit message + -e --edit invoke editor on commit messages -g --git use git extended diff format -U --currentuser add "From: <current user>" to patch -u --user USER add "From: <USER>" to patch