Mercurial > hg
diff hgext/record.py @ 11238:a5922547b5cc
Merge with stable
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 31 May 2010 13:55:47 +0200 |
parents | 49a07f441496 feb2a58fc592 |
children | 324cd681fa47 |
line wrap: on
line diff
--- a/hgext/record.py Sun May 30 23:24:10 2010 +0200 +++ b/hgext/record.py Mon May 31 13:55:47 2010 +0200 @@ -296,9 +296,9 @@ ui.write("\n") if r == 7: # ? doc = gettext(record.__doc__) - c = doc.find(_('y - record this change')) + c = doc.find('::') + 2 for l in doc[c:].splitlines(): - if l: + if l.startswith(' '): ui.write(l.strip(), '\n') continue elif r == 0: # yes @@ -380,7 +380,9 @@ a - record all changes to all remaining files q - quit, recording no changes - ? - display help''' + ? - display help + + This command is not available when committing a merge.''' dorecord(ui, repo, commands.commit, *pats, **opts) @@ -419,10 +421,15 @@ After the actual job is done by non-interactive command, working dir state is restored to original. - In the end we'll record intresting changes, and everything else will be + In the end we'll record interesting changes, and everything else will be left in place, so the user can continue his work. """ + merge = len(repo[None].parents()) > 1 + if merge: + raise util.Abort(_('cannot partially commit a merge ' + '(use hg commit instead)')) + changes = repo.status(match=match)[:3] diffopts = mdiff.diffopts(git=True, nodates=True) chunks = patch.diff(repo, changes=changes, opts=diffopts)