Mercurial > hg
comparison hgext/mq.py @ 10274:04207f5e7344 stable
mq: Do not translate import message that are appended to commits.
We should not translate the "imported patch" message. The translated message
confuses the detection whether the user has not updated the commit message yet.
We try to avoid to translate generated commit messages.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Wed, 20 Jan 2010 23:23:18 +0100 |
parents | 25e572394f5c |
children | 6109a02c682b d355cebde5e6 |
comparison
equal
deleted
inserted
replaced
10269:acf001ee5ef8 | 10274:04207f5e7344 |
---|---|
611 err = 1 | 611 err = 1 |
612 break | 612 break |
613 | 613 |
614 message = ph.message | 614 message = ph.message |
615 if not message: | 615 if not message: |
616 message = _("imported patch %s\n") % patchname | 616 message = "imported patch %s\n" % patchname |
617 else: | 617 else: |
618 if list: | 618 if list: |
619 message.append(_("\nimported patch %s") % patchname) | 619 message.append("\nimported patch %s" % patchname) |
620 message = '\n'.join(message) | 620 message = '\n'.join(message) |
621 | 621 |
622 if ph.haspatch: | 622 if ph.haspatch: |
623 (patcherr, files, fuzz) = self.patch(repo, pf) | 623 (patcherr, files, fuzz) = self.patch(repo, pf) |
624 all_files.update(files) | 624 all_files.update(files) |