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