Show More
@@ -120,8 +120,9 b" def fetch(ui, repo, source='default', **" | |||||
120 | err = hg.merge(repo, secondparent, remind=False) |
|
120 | err = hg.merge(repo, secondparent, remind=False) | |
121 |
|
121 | |||
122 | if not err: |
|
122 | if not err: | |
|
123 | # we don't translate commit messages | |||
123 | message = (cmdutil.logmessage(opts) or |
|
124 | message = (cmdutil.logmessage(opts) or | |
124 |
|
|
125 | ('Automated merge with %s' % | |
125 | url.removeauth(other.url()))) |
|
126 | url.removeauth(other.url()))) | |
126 | editor = cmdutil.commiteditor |
|
127 | editor = cmdutil.commiteditor | |
127 | if opts.get('force_editor') or opts.get('edit'): |
|
128 | if opts.get('force_editor') or opts.get('edit'): |
@@ -251,7 +251,8 b' def sign(ui, repo, *revs, **opts):' | |||||
251 |
|
251 | |||
252 | message = opts['message'] |
|
252 | message = opts['message'] | |
253 | if not message: |
|
253 | if not message: | |
254 | message = "\n".join([_("Added signature for changeset %s") |
|
254 | # we don't translate commit messages | |
|
255 | message = "\n".join(["Added signature for changeset %s" | |||
255 | % hgnode.short(n) |
|
256 | % hgnode.short(n) | |
256 | for n in nodes]) |
|
257 | for n in nodes]) | |
257 | try: |
|
258 | try: |
@@ -162,6 +162,7 b' def concludenode(repo, rev, p1, p2, stat' | |||||
162 | newrev = nullrev |
|
162 | newrev = nullrev | |
163 | try: |
|
163 | try: | |
164 | if last: |
|
164 | if last: | |
|
165 | # we don't translate commit messages | |||
165 | commitmsg = 'Collapsed revision' |
|
166 | commitmsg = 'Collapsed revision' | |
166 | for rebased in state: |
|
167 | for rebased in state: | |
167 | if rebased not in skipped: |
|
168 | if rebased not in skipped: |
@@ -206,6 +206,7 b' class transplanter(object):' | |||||
206 | (user, date, message) = self.filter(filter, cl, patchfile) |
|
206 | (user, date, message) = self.filter(filter, cl, patchfile) | |
207 |
|
207 | |||
208 | if log: |
|
208 | if log: | |
|
209 | # we don't translate messages inserted into commits | |||
209 | message += '\n(transplanted from %s)' % revlog.hex(node) |
|
210 | message += '\n(transplanted from %s)' % revlog.hex(node) | |
210 |
|
211 | |||
211 | self.ui.status(_('applying %s\n') % revlog.short(node)) |
|
212 | self.ui.status(_('applying %s\n') % revlog.short(node)) |
@@ -238,7 +238,8 b' def backout(ui, repo, node=None, rev=Non' | |||||
238 | commit_opts = opts.copy() |
|
238 | commit_opts = opts.copy() | |
239 | commit_opts['addremove'] = False |
|
239 | commit_opts['addremove'] = False | |
240 | if not commit_opts['message'] and not commit_opts['logfile']: |
|
240 | if not commit_opts['message'] and not commit_opts['logfile']: | |
241 | commit_opts['message'] = _("Backed out changeset %s") % (short(node)) |
|
241 | # we don't translate commit messages | |
|
242 | commit_opts['message'] = "Backed out changeset %s" % (short(node)) | |||
242 | commit_opts['force_editor'] = True |
|
243 | commit_opts['force_editor'] = True | |
243 | commit(ui, repo, **commit_opts) |
|
244 | commit(ui, repo, **commit_opts) | |
244 | def nice(node): |
|
245 | def nice(node): | |
@@ -2883,7 +2884,8 b' def tag(ui, repo, name1, *names, **opts)' | |||||
2883 | raise util.Abort(_('tag \'%s\' is not a local tag') % n) |
|
2884 | raise util.Abort(_('tag \'%s\' is not a local tag') % n) | |
2884 | rev_ = nullid |
|
2885 | rev_ = nullid | |
2885 | if not message: |
|
2886 | if not message: | |
2886 | message = _('Removed tag %s') % ', '.join(names) |
|
2887 | # we don't translate commit messages | |
|
2888 | message = 'Removed tag %s' % ', '.join(names) | |||
2887 | elif not opts.get('force'): |
|
2889 | elif not opts.get('force'): | |
2888 | for n in names: |
|
2890 | for n in names: | |
2889 | if n in repo.tags(): |
|
2891 | if n in repo.tags(): | |
@@ -2895,7 +2897,8 b' def tag(ui, repo, name1, *names, **opts)' | |||||
2895 | r = repo[rev_].node() |
|
2897 | r = repo[rev_].node() | |
2896 |
|
2898 | |||
2897 | if not message: |
|
2899 | if not message: | |
2898 | message = (_('Added tag %s for changeset %s') % |
|
2900 | # we don't translate commit messages | |
|
2901 | message = ('Added tag %s for changeset %s' % | |||
2899 | (', '.join(names), short(r))) |
|
2902 | (', '.join(names), short(r))) | |
2900 |
|
2903 | |||
2901 | date = opts.get('date') |
|
2904 | date = opts.get('date') |
General Comments 0
You need to be logged in to leave comments.
Login now