##// END OF EJS Templates
i18n: fix "% inside _()" problems...
FUJIWARA Katsunori -
r20868:5db105f2 stable
parent child Browse files
Show More
@@ -198,8 +198,8 b' pypats = ['
198 (r'\s<>\s', '<> operator is not available in Python 3+, use !='),
198 (r'\s<>\s', '<> operator is not available in Python 3+, use !='),
199 (r'^\s*\t', "don't use tabs"),
199 (r'^\s*\t', "don't use tabs"),
200 (r'\S;\s*\n', "semicolon"),
200 (r'\S;\s*\n', "semicolon"),
201 (r'[^_]_\("[^"]+"\s*%', "don't use % inside _()"),
201 (r'[^_]_\("[^"]+"[ \t\n]*%', "don't use % inside _()"),
202 (r"[^_]_\('[^']+'\s*%", "don't use % inside _()"),
202 (r"[^_]_\('[^']+'[ \t\n]*%", "don't use % inside _()"),
203 (r'(\w|\)),\w', "missing whitespace after ,"),
203 (r'(\w|\)),\w', "missing whitespace after ,"),
204 (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"),
204 (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"),
205 (r'^\s+(\w|\.)+=\w[^,()\n]*$', "missing whitespace in assignment"),
205 (r'^\s+(\w|\.)+=\w[^,()\n]*$', "missing whitespace in assignment"),
@@ -303,14 +303,14 b' def _converttags(ui, revmap, data):'
303 try:
303 try:
304 id, name = line.split(' ', 1)
304 id, name = line.split(' ', 1)
305 except ValueError:
305 except ValueError:
306 ui.warn(_('skipping incorrectly formatted tag %s\n'
306 ui.warn(_('skipping incorrectly formatted tag %s\n')
307 % line))
307 % line)
308 continue
308 continue
309 try:
309 try:
310 newid = node.bin(id)
310 newid = node.bin(id)
311 except TypeError:
311 except TypeError:
312 ui.warn(_('skipping incorrectly formatted id %s\n'
312 ui.warn(_('skipping incorrectly formatted id %s\n')
313 % id))
313 % id)
314 continue
314 continue
315 try:
315 try:
316 newdata.append('%s %s\n' % (node.hex(revmap[newid]),
316 newdata.append('%s %s\n' % (node.hex(revmap[newid]),
@@ -752,8 +752,8 b' def bisect(ui, repo, rev=None, extra=Non'
752 if not changesets:
752 if not changesets:
753 extendnode = extendbisectrange(nodes, good)
753 extendnode = extendbisectrange(nodes, good)
754 if extendnode is not None:
754 if extendnode is not None:
755 ui.write(_("Extending search to changeset %d:%s\n"
755 ui.write(_("Extending search to changeset %d:%s\n")
756 % (extendnode.rev(), extendnode)))
756 % (extendnode.rev(), extendnode))
757 state['current'] = [extendnode.node()]
757 state['current'] = [extendnode.node()]
758 hbisect.save_state(repo, state)
758 hbisect.save_state(repo, state)
759 if noupdate:
759 if noupdate:
@@ -433,7 +433,7 b' def clone(ui, peeropts, source, dest=Non'
433 if bn == 'default':
433 if bn == 'default':
434 status = _("updating to bookmark @\n")
434 status = _("updating to bookmark @\n")
435 else:
435 else:
436 status = _("updating to bookmark @ on branch %s\n"
436 status = (_("updating to bookmark @ on branch %s\n")
437 % bn)
437 % bn)
438 except KeyError:
438 except KeyError:
439 try:
439 try:
@@ -70,8 +70,8 b' class mergestate(object):'
70 bits = record.split("\0")
70 bits = record.split("\0")
71 self._state[bits[0]] = bits[1:]
71 self._state[bits[0]] = bits[1:]
72 elif not rtype.islower():
72 elif not rtype.islower():
73 raise util.Abort(_('unsupported merge state record: %s'
73 raise util.Abort(_('unsupported merge state record: %s')
74 % rtype))
74 % rtype)
75 self._dirty = False
75 self._dirty = False
76 def _readrecords(self):
76 def _readrecords(self):
77 v1records = self._readrecordsv1()
77 v1records = self._readrecordsv1()
@@ -321,8 +321,8 b' def _sanitize(ui, path):'
321 for f in names:
321 for f in names:
322 if f.lower() == 'hgrc':
322 if f.lower() == 'hgrc':
323 ui.warn(
323 ui.warn(
324 _("warning: removing potentially hostile .hg/hgrc in '%s'"
324 _("warning: removing potentially hostile .hg/hgrc in '%s'")
325 % path))
325 % path)
326 os.unlink(os.path.join(dirname, f))
326 os.unlink(os.path.join(dirname, f))
327 os.walk(path, v, None)
327 os.walk(path, v, None)
328
328
General Comments 0
You need to be logged in to leave comments. Login now